Last change
on this file since 31 was 14, checked in by lstark, 16 years ago |
first version of hvcontrol added
|
File size:
845 bytes
|
Line | |
---|
1 | #
|
---|
2 | # Makefile for the CTX HV utility
|
---|
3 | #
|
---|
4 |
|
---|
5 | include Makefile.general
|
---|
6 |
|
---|
7 | PROGRAMS = hvcontrol remotecontrol
|
---|
8 |
|
---|
9 | SUBDIRS = src
|
---|
10 |
|
---|
11 |
|
---|
12 | all: $(PROGRAMS)
|
---|
13 |
|
---|
14 |
|
---|
15 | OBJECTS = $(SUBDIRS:=/*.o)
|
---|
16 |
|
---|
17 | INCDIRS = -I. $(SUBDIRS:%=-I%)
|
---|
18 |
|
---|
19 | MRPROPERS = $(SUBDIRS:=.mrproper)
|
---|
20 |
|
---|
21 | CLEANERS = $(SUBDIRS:=.cleaner)
|
---|
22 |
|
---|
23 | LIBRARIES = $(SUBDIRS:=.all)
|
---|
24 |
|
---|
25 |
|
---|
26 | $(PROGRAMS) : % : %.o $(LIBRARIES)
|
---|
27 | $(G++) $(CFLAGS) -o $@ $@.o $(OBJECTS) $(LIBS)
|
---|
28 |
|
---|
29 | include Makefile.rules
|
---|
30 |
|
---|
31 | $(LIBRARIES):
|
---|
32 | @echo " Calling make in $(@:.all=)"
|
---|
33 | @(cd $(@:.all=); $(MAKE) -f Makefile all)
|
---|
34 |
|
---|
35 | $(MRPROPERS):
|
---|
36 | @echo " Doing Mr.Proper in $(@:.mrproper=)"
|
---|
37 | @(cd $(@:.mrproper=); $(MAKE) -f Makefile mrproper)
|
---|
38 |
|
---|
39 | $(CLEANERS):
|
---|
40 | @echo " Doing clean in $(@:.cleaner=)"
|
---|
41 | @(cd $(@:.cleaner=); $(MAKE) -f Makefile clean)
|
---|
42 |
|
---|
43 | mrproper: $(MRPROPERS) rmobj rmbak rmdep
|
---|
44 | @rm -f $(PROGRAMS)
|
---|
45 | @echo " Done."
|
---|
46 |
|
---|
47 | clean: $(CLEANERS) rmobj
|
---|
48 | @echo " Done."
|
---|
49 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.