Closed brandonkovacs closed 6 years ago
I believe this is better:
pp64.bin: pp.c mpz_int128.h
- $(CC_LINUX64) $(CFLAGS_LINUX64) -o $@ $^
+ $(CC_LINUX64) $(CFLAGS_LINUX64) -o $@ $<
This change should be made for all targets
I believe this is better:
pp64.bin: pp.c mpz_int128.h - $(CC_LINUX64) $(CFLAGS_LINUX64) -o $@ $^ + $(CC_LINUX64) $(CFLAGS_LINUX64) -o $@ $<
This change should be made for all targets
Yup - you're right. This worked too!
The difference is that the latter solution will correctly re-build the target if mpz_int128.h
is changed whereas with your original PR it wouldn't. Makefiles are voodoo stuff.
Removed header file from Makefile so princeprocessor compiles on Mac OS X.
This was the advised method on Stackoverflow.