summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo La Greca2025-05-02 17:18:21 +0200
committerEdoardo La Greca2025-05-02 17:18:21 +0200
commitbf4350b9ad80948d7e79ab64fe5cdff7c10a813a (patch)
tree0a48e0a14126543ff092ebfd6294fd9787f3ea24
parent4983bbee296d3fdbef9339e8c8f19dd3e7af5262 (diff)
change makefile targets, add OBJS variable, add comment for platform-dependent object files
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f567c38..3c3dfd1 100644
--- a/Makefile
+++ b/Makefile
@@ -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