Projects : gscm : gscm_genesis
1 | PREFIX := /package/gscm-0.40.3 |
2 | ASM_ARCH := x86_64 |
3 | |
4 | CFLAGS := -std=c99 -pedantic -Wall -Wextra -Winit-self -Wstrict-aliasing=1 -g -O2 |
5 | CPPFLAGS := -DGSCMLIB=\"$(PREFIX)/library\" |
6 | |
7 | # Comment to enable internal assertions (~2x slowdown) |
8 | CPPFLAGS += -DNDEBUG |
9 | |
10 | LDLIBS := -lm |
11 | |
12 | ../command/gscm: gscm.o main.o asm-$(ASM_ARCH).o |
13 | $(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS) |
14 | |
15 | clean: |
16 | rm -f ../command/gscm *.o |
17 | |
18 | gscm.o: gscm.c gscm.h |
19 | main.o: main.c gscm.h |