From dc7aee91ce668ce4966d5c7794cea2e43be501e7 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Wed, 19 Apr 2023 23:43:59 +0200 Subject: [PATCH] add lommereimar to makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9da0644..464cf3d 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ CFLAGS = \ # CFLAGS += -O3 CFLAGS += -g -all: compile_flags.txt dirs scirpt +all: compile_flags.txt dirs scirpt lommereimar COMMON_SRC = string.c stringmap.c COMMON_OBJ = $(patsubst %.c, build/common/%.o, $(COMMON_SRC)) @@ -23,6 +23,12 @@ SCIRPT_OBJ = $(patsubst %.c, build/scirpt/%.o, $(SCIRPT_SRC)) scirpt: $(SCIRPT_OBJ) $(COMMON_OBJ) $(CC) -o bin/$@ $(CFLAGS) $^ -lm +LOMMEREIMAR_SRC = calculator.c +LOMMEREIMAR_OBJ = $(patsubst %.c, build/lommereimar/%.o, $(LOMMEREIMAR_SRC)) + +lommereimar: $(LOMMEREIMAR_OBJ) $(COMMON_OBJ) + $(CC) -o bin/$@ $(CFLAGS) $^ -lm + build/%.o: %.c $(shell find -name *.h) mkdir $(@D) -p $(CC) -c -o $@ $(CFLAGS) $<