diff --git a/apps/sam/c/Makefile b/apps/sam/c/Makefile index 72fa21cd2..4488a63f6 100644 --- a/apps/sam/c/Makefile +++ b/apps/sam/c/Makefile @@ -27,15 +27,15 @@ lib/libsam.so: obj/libsam.la obj/libsam-static.la: $(OBJS) $(STATUS) library '(static)' - libtool --mode=link gcc -static $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG) + libtool --mode=link $(CC) -static $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG) obj/libsam.la: $(OBJS) $(STATUS) library '(shared)' - libtool --mode=link gcc -rpath $(DESTDIR) $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG) + libtool --mode=link $(CC) -rpath $(DESTDIR) $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG) obj/%.lo: src/%.c $(STATUS) compile $* - libtool --mode=compile gcc $(CFLAGS) -Iinc/ -c -o $@ $< >>$(LIBTOOL_LOG) + libtool --mode=compile $(CC) $(CFLAGS) -Iinc/ -c -o $@ $< >>$(LIBTOOL_LOG) $(OBJS):|obj obj: @@ -44,7 +44,7 @@ obj: .deps/%.d: src/%.c $(STATUS) deps $* - gcc -Iinc/ -MM -MT obj/$*.o $< -o $@ + $(CC) -Iinc/ -MM -MT obj/$*.o $< -o $@ -include $(DEPS) @@ -61,4 +61,4 @@ clean: libtool --mode=clean rm -f obj/*.l* lib/*.l* lib/*.so* lib/*.a >>$(LIBTOOL_LOG) rm -Rf .deps libtool.log -.PHONY: all cleanlog clean \ No newline at end of file +.PHONY: all cleanlog clean diff --git a/apps/sam/c/examples/i2p-ping/Makefile b/apps/sam/c/examples/i2p-ping/Makefile index 9f5c27b5e..330e3340b 100644 --- a/apps/sam/c/examples/i2p-ping/Makefile +++ b/apps/sam/c/examples/i2p-ping/Makefile @@ -25,14 +25,14 @@ cleanlog: i2p-ping: $(OBJS) $(STATUS) link - libtool --mode=link gcc $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG) + libtool --mode=link $(CC) $(LDFLAGS) -o $@ $^ >>$(LIBTOOL_LOG) %.lo: %.c $(STATUS) compile $* - libtool --mode=compile gcc $(CFLAGS) -Iinc/ -c -o $@ $< >>$(LIBTOOL_LOG) + libtool --mode=compile $(CC) $(CFLAGS) -Iinc/ -c -o $@ $< >>$(LIBTOOL_LOG) .deps/%.d: src/%.c $(STATUS) deps $* - gcc -Iinc/ -MM -MT obj/$*.o $^ -o $@ + $(CC) -Iinc/ -MM -MT obj/$*.o $^ -o $@ clean: $(STATUS) clean @@ -44,11 +44,11 @@ obj: $(STATUS) MKDIR $@ mkdir -p $@ --include $(DEPS) +# -include $(DEPS) $(DEPS):|.deps .deps: $(STATUS) MKDIR $@ mkdir -p $@ -.PHONY: all cleanlog clean \ No newline at end of file +.PHONY: all cleanlog clean