diff options
Diffstat (limited to 'Makefile')
-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 $@ $< |