-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (33 loc) · 877 Bytes
/
Makefile
File metadata and controls
40 lines (33 loc) · 877 Bytes
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
include config.mk
CFLAGS = $(DEBUG)
LDFLAGS = $(if $(GNU),, dbghelp.lib)
.PHONY: all
all: $(CARPLIB) t
.PHONY: t
t: $(CARPLIB)
$(MAKE) -C t/ all
$(CARPLIB): carp$(_O) config$(_O) tracedef$(_O) trace$(_O) funcinfo$(_O) \
list$(_O) handy$(_O)
carp$(_O): carp.c carp.h carppriv.h
config$(_O): config.c carppriv.h
tracedef$(_O): $(if $(GNU), tracegdb.c, tracewin.c) carppriv.h
trace$(_O): trace.c carppriv.h
funcinfo$(_O): funcinfo.c carppriv.h
list$(_O): list.c carppriv.h
handy$(_O): handy.c carppriv.h
.PHONY: check
check: t
ifdef GNU
prove -e '' t/*-test t/trusted-libs
else
perl -e "system 'prove', '-q', '-m', '-e', '', \
glob('t/*-test.exe'), 't/trusted-libs.exe'"
endif
.PHONY: clean
clean:
$(RM) -rv $(CARPLIB) *.o *.obj *.lib *.pdb *.ilk _C *.dll *.exp *.zip
$(MAKE) -C t/ clean
.PHONY: dist
dist:
$(RM) -v libcarp.zip
zip -r libcarp *