Lines 36-52
Link Here
|
36 |
if test ! -d .deps; then mkdir .deps; fi |
36 |
if test ! -d .deps; then mkdir .deps; fi |
37 |
|
37 |
|
38 |
wrapper: $(wrapper_SOURCE) |
38 |
wrapper: $(wrapper_SOURCE) |
39 |
$(COMPILE) -pthread $(wrapper_SOURCE) -lm -o $(BIN)/wrapper |
39 |
$(COMPILE) $(CFLAGS) $(LDFLAGS) -pthread $(wrapper_SOURCE) -lm -o $(BIN)/wrapper |
40 |
|
40 |
|
41 |
testsuite: $(testsuite_SOURCE) |
41 |
testsuite: $(testsuite_SOURCE) |
42 |
$(COMPILE) -DCUNIT $(testsuite_SOURCE) -lm -pthread -L/usr/local/lib -lncurses -lcunit -o $(TEST)/testsuite |
42 |
$(COMPILE) $(CFLAGS) $(LDFLAGS) -DCUNIT $(testsuite_SOURCE) -lm -pthread -L/usr/local/lib -lncurses -lcunit -o $(TEST)/testsuite |
43 |
|
43 |
|
44 |
libwrapper.so: $(libwrapper_so_OBJECTS) |
44 |
libwrapper.so: $(libwrapper_so_OBJECTS) |
45 |
${COMPILE} -shared $(libwrapper_so_OBJECTS) -o $(LIB)/libwrapper.so |
45 |
${COMPILE} $(LDFLAGS) -shared $(libwrapper_so_OBJECTS) -o $(LIB)/libwrapper.so |
46 |
|
46 |
|
47 |
%.o: %.c |
47 |
%.o: %.c |
48 |
@echo '$(COMPILE) -c $<'; \ |
48 |
@echo '$(COMPILE) $(CFLAGS) -c $<'; \ |
49 |
$(COMPILE) $(DEFS) -Wp,-MD,.deps/$(*F).pp -c $< |
49 |
$(COMPILE) $(CFLAGS) $(DEFS) -Wp,-MD,.deps/$(*F).pp -c $< |
50 |
@-cp .deps/$(*F).pp .deps/$(*F).P; \ |
50 |
@-cp .deps/$(*F).pp .deps/$(*F).P; \ |
51 |
tr ' ' '\012' < .deps/$(*F).pp \ |
51 |
tr ' ' '\012' < .deps/$(*F).pp \ |
52 |
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ |
52 |
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ |