-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.in
49 lines (39 loc) · 1.47 KB
/
Makefile.in
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
SRC=src
LD=-lc
all : bin lib rakumod
bin : resources/bin/P6-Fcntl%EXE%
lib : resources/lib/libfcntl%SO% resources/lib/libjust-for-tests%SO%
rakumod : lib/Fcntl.rakumod
resources/bin/P6-Fcntl%EXE% : $(SRC)/P6-Fcntl.c
%CC% -I $(SRC) %CCFLAGS% %CCOUT%resources/bin/P6-Fcntl%EXE% $(SRC)/P6-Fcntl.c
resources/lib/libjust-for-tests%SO% : $(SRC)/just-for-tests%O% $(SRC)/P6-Fcntl%O%
%LD% %LDSHARED% -v %LDFLAGS% \
%LDOUT%resources/lib/libjust-for-tests%SO% \
$(SRC)/just-for-tests%O% \
$(SRC)/P6-Fcntl%O% \
$(LD)
resources/lib/libfcntl%SO% : $(SRC)/fcntl%O%
%LD% %LDSHARED% -v %LDFLAGS% \
%LDOUT%resources/lib/libfcntl%SO% \
$(SRC)/fcntl%O% \
$(LD)
$(SRC)/fcntl%O% : $(SRC)/fcntl.c
%CC% -I $(SRC) -v -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/fcntl%O% $(SRC)/fcntl.c
$(SRC)/just-for-tests%O% : $(SRC)/just-for-tests.c $(SRC)/P6-Fcntl.c
%CC% -I $(SRC) -v -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/just-for-tests%O% $(SRC)/just-for-tests.c
%CC% -I $(SRC) -v -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/P6-Fcntl%O% $(SRC)/P6-Fcntl.c
lib/Fcntl.rakumod : src/Fcntl.prefix.rakumod resources/bin/P6-Fcntl%EXE%
@cp src/Fcntl.prefix.rakumod Fcntl.rakumod
resources/bin/P6-Fcntl%EXE%
@mv Fcntl.rakumod lib/Fcntl.rakumod
test : all
@prove -e"perl6 -I lib" -v t
clean :
@rm -f $(SRC)/*%O%
@rm -f resources/bin/P6-Fcntl%EXE%
@rm -f resources/lib/libsimplestruct%SO%
@rm -f resources/lib/libjust-for-tests%SO%
@rm -f lib/Fcntl.rakumod
@rm -f $(SRC)/just-for-tests%O%
realclean : clean
@rm -f Makefile