PREFIX := /package/gscm-0.40.3 ASM_ARCH := x86_64 CFLAGS := -std=c99 -pedantic -Wall -Wextra -Winit-self -Wstrict-aliasing=1 -g -O2 CPPFLAGS := -DGSCMLIB=\"$(PREFIX)/library\" # Comment to enable internal assertions (~2x slowdown) CPPFLAGS += -DNDEBUG LDLIBS := -lm ../command/gscm: gscm.o main.o asm-$(ASM_ARCH).o $(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS) clean: rm -f ../command/gscm *.o gscm.o: gscm.c gscm.h main.o: main.c gscm.h