diff options
author | Edoardo La Greca | 2025-05-02 17:18:21 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-05-02 17:18:21 +0200 |
commit | bf4350b9ad80948d7e79ab64fe5cdff7c10a813a (patch) | |
tree | 0a48e0a14126543ff092ebfd6294fd9787f3ea24 | |
parent | 4983bbee296d3fdbef9339e8c8f19dd3e7af5262 (diff) |
change makefile targets, add OBJS variable, add comment for platform-dependent object files
-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 |