diff options
author | Edoardo La Greca | 2025-05-04 17:36:03 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-05-04 17:36:03 +0200 |
commit | 85b47ab8341df72fac08baef7e3cc859587f3761 (patch) | |
tree | 340d66d09af58912d54f0c93d910f37ae35cb3ab | |
parent | cb7efe989f0a51d470f72360036a5ec67a358f88 (diff) |
improve make file
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -5,6 +5,10 @@ LDFLAGS = OUTNAME = libfemtokit.a TESTFILE = hello.c +# Where the final compilation output is going to be placed. (See Filesystem Hierarchy +# Standard.) +PREFIX = /usr/local/lib + # All object files are listed here: OBJS = $(OBJS_PLATDEP) @@ -23,11 +27,11 @@ clean: -rm test *.o *.a install: all - mv -f $(OUTNAME) /usr/lib + mv -f $(OUTNAME) $(PREFIX) test: all c99 -l libfemtokit.a -o test test/$(TESTFILE) .c.o: - c99 -c $(CFLAGS) -o $@ $< + c99 -c $(CFLAGS) $(LDFLAGS) -o $@ $< |