-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
59 lines (53 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#################################################
# CAPT Driver for PDAPI #
# Integrated Makefile #
#################################################
### Macros ###
DRIVERDIR = driver
FILTERDIR = pstocapt
FILTERDIR2 = pstocapt2
FILTERDIR3 = pstocapt3
PPDDIR = ppd
BACKENDDIR = backend
CNGPLPDIR = cngplp
STATUSDIR = statusui
SRCDIRS =\
$(DRIVERDIR)\
$(BACKENDDIR)\
$(FILTERDIR)\
$(FILTERDIR2)\
$(FILTERDIR3)\
$(STATUSDIR)\
$(PPDDIR)\
$(CNGPLPDIR)
### Make modules ###
all:
for dir in $(SRCDIRS); do\
echo Making modules $$dir ...;\
(cd $$dir; make) || exit 1;\
done
echo Make completed.
### Install modules ###
install:
for dir in $(SRCDIRS); do\
echo Installing modules $$dir ...;\
(cd $$dir; make install) || exit 1;\
done
### Uninstall modules ###
uninstall:
for dir in $(SRCDIRS); do\
echo Uninstalling modules $$dir ...;\
(cd $$dir; make uninstall) || exit 1;\
done
### Clean-up objects files ###
clean:
for dir in $(SRCDIRS); do\
echo Cleaning $$dir ...;\
(cd $$dir; make clean) || exit 1;\
done
### Clean-up objects and configure files ###
distclean:
for dir in $(SRCDIRS); do\
echo distclean $$dir ...;\
(cd $$dir; make distclean) || exit 1;\
done