diff options
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -5,10 +5,15 @@ LDFLAGS = OUTNAME = libfemtokit.a TESTFILE = hello.c -all: clean build - ar -rs $(OUTNAME) *.o +# All object files are listed here +OBJS = + +# Add platform-dependent object files in separate variables (e.g. OBJS_LINUX) +# and then, when running the make file, make sure to concatenate the appropriate +# variable (e.g. OBJS = $(OBJS) $(OBJS_LINUX) ). -build: +all: $(OBJS) + ar -rs $(OUTNAME) *.o clean: -rm test *.o *.a |