shithub: scc

ref: 95232a91309714fde82840811c7bae6c53dd5778
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 $@ $<