2020: Tentative C & Bash frameworks (common functions)

This commit is contained in:
2022-12-03 14:42:37 +01:00
parent c7553e7849
commit 36f763830f
7 changed files with 121 additions and 66 deletions

View File

@@ -82,9 +82,9 @@ ccls: $(CCLSFILE)
clean:
@rm -f aoc-c core* vgcore* gmon.out aoc-c.s aoc-c.i README.html compile_commands.json
.c:
aoc-c: aoc-c.c common.c
@echo compiling $<
@$(CC) $(CFLAGS) $(LDFLAGS) -I $(INCDIR) $< $(LDLIB) -o $@
$(CC) $(CFLAGS) $(LDFLAGS) -I $(INCDIR) $^ $(LDLIB) -o $@
# generate pre-processed file (.i) and assembler (.s)
%.i: %.c