source: hvcontrol/Makefile@ 31

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
5include Makefile.general
6
7PROGRAMS = hvcontrol remotecontrol
8
9SUBDIRS = src
10
11
12all: $(PROGRAMS)
13
14
15OBJECTS = $(SUBDIRS:=/*.o)
16
17INCDIRS = -I. $(SUBDIRS:%=-I%)
18
19MRPROPERS = $(SUBDIRS:=.mrproper)
20
21CLEANERS = $(SUBDIRS:=.cleaner)
22
23LIBRARIES = $(SUBDIRS:=.all)
24
25
26$(PROGRAMS) : % : %.o $(LIBRARIES)
27 $(G++) $(CFLAGS) -o $@ $@.o $(OBJECTS) $(LIBS)
28
29include 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
43mrproper: $(MRPROPERS) rmobj rmbak rmdep
44 @rm -f $(PROGRAMS)
45 @echo " Done."
46
47clean: $(CLEANERS) rmobj
48 @echo " Done."
49
Note: See TracBrowser for help on using the repository browser.