From d5263fdfc89ecf9a5d2386b8b4ba8aad1d6ce105 Mon Sep 17 00:00:00 2001
From: Edoardo La Greca
Date: Fri, 2 May 2025 19:56:50 +0200
Subject: add a proper way to make platform-dependent code, update readme with
 compilation instructions

---
 Makefile | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

(limited to 'Makefile')

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
-- 
cgit v1.2.3