shithub: scc

ref: 72415218413b75d436592eab0963a84a27e7974d
dir: /config.mk/

View raw version
# scc version
VERSION = 0.1

# Customize below to fit your system
ARCH = z80
DRIVER = posix
# Remove inc/sizes.h if STD is changed
# can be c89 or c99
STD = c89

# 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
SCC_CFLAGS = -DARCH=\"$(ARCH)\" \
             -Iarch/$(ARCH) \
             -DPREFIX=\"$(PREFIX)\" \
             -DNDEBUG \
             $(CFLAGS)

SCC_LDFLAGS = $(LDFLAGS)

.c.o:
	$(CC) $(SCC_CFLAGS) -o $@ -c $<

.c:
	$(CC) $(SCC_CFLAGS) $(SCC_LDFLAGS) -o $@ $<