shithub: scc

ref: 44956b98edc0b97ad3319467152ad362f1632e72
dir: /config.mk/

View raw version
# scc version
VERSION     = 0.1

# Customize below to fit your system
ARCH = z80
DRIVER = posix

# paths
PREFIX    = $(HOME)
MANPREFIX = ${PREFIX}/share/man

# if your system is not POSIX maybe you want to use cc or gcc
# CC = c99
# AR = ar

# for Plan9 add -D_SUSV2_SOURCE -DNBOOL
SCFLAGS = -DNDEBUG -Iarch/$(ARCH) -DPREFIX=\""$(PREFIX)"\"
SLDFLAGS  =

.c.o:
	$(CC) $(SCFLAGS) $(CFLAGS) -o $@ -c $<

.c:
	$(CC) $(SCFLAGS) $(CFLAGS) -o $@ $<