Projects : gscm : gscm_genesis

src/Makefile

Dir - Raw

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