diff options
author | Edoardo La Greca | 2025-05-02 19:56:50 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-05-02 19:58:55 +0200 |
commit | d5263fdfc89ecf9a5d2386b8b4ba8aad1d6ce105 (patch) | |
tree | a32a42f8760d2b6aa5656b2652bf50db6425df72 /Makefile | |
parent | bf4350b9ad80948d7e79ab64fe5cdff7c10a813a (diff) |
add a proper way to make platform-dependent code, update readme with compilation instructions
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 |