-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfig.mk
More file actions
40 lines (31 loc) · 732 Bytes
/
Copy pathconfig.mk
File metadata and controls
40 lines (31 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# scc version
VERSION = 0.1
## Customize below to fit your system
ARCHS = z80 i386-sysv amd64-sysv qbe
# default architecure used in nested makefiles
ARCH = qbe
SYS = linux
DRIVER = posix
# Can be c89 or c99
STD = c99
# paths
PREFIX = $(HOME)
MANPREFIX = $(PREFIX)/share/man
# scc expects to be built by a C99 compiler
# if your system is not at least POSIX 2004 compatible, adjust CC
# CC = c99
# AR = ar
AS = as
# for Plan9 add -D_SUSV2_SOURCE
SCC_CFLAGS = -DARCH=\"$(ARCH)\" \
$(CSTDINC) \
-DPREFIX=\"$(PREFIX)\" \
-g \
$(CFLAGS)
SCC_LDFLAGS = $(LDFLAGS)
.s.o:
$(AS) $< -o $@
.c.o:
$(CC) $(SCC_CFLAGS) -o $@ -c $<
.c:
$(CC) $(SCC_CFLAGS) $(SCC_LDFLAGS) -o $@ $<