summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEdoardo La Greca2025-05-02 19:56:50 +0200
committerEdoardo La Greca2025-05-02 19:58:55 +0200
commitd5263fdfc89ecf9a5d2386b8b4ba8aad1d6ce105 (patch)
treea32a42f8760d2b6aa5656b2652bf50db6425df72 /Makefile
parentbf4350b9ad80948d7e79ab64fe5cdff7c10a813a (diff)
add a proper way to make platform-dependent code, update readme with compilation instructions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3c3dfd1..ccd5b0a 100644
--- a/Makefile
+++ b/Makefile
@@ -5,12 +5,15 @@ LDFLAGS =
OUTNAME = libfemtokit.a
TESTFILE = hello.c
-# All object files are listed here
-OBJS =
+# All object files are listed here:
+OBJS = $(OBJS_PLATDEP)
-# 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) ).
+# Add platform dependent object files here:
+OBJS_PLATDEP =
+
+# Add platform-dependent object files in separate variables ("OBJS_NAME", e.g.
+# OBJS_LINUX) and then, when running the make file, make sure to assign the
+# appropriate variable to OBJS_PLATDEP (e.g. OBJS_PLATDEP = $(OBJS_LINUX) ).
all: $(OBJS)
ar -rs $(OUTNAME) *.o