scc

simple C compiler
git clone git@git.2f30.org/scc.git
Log | Files | Refs | README | LICENSE

config.mk.def (952B)


      1 # scc version
      2 VERSION = 0.1
      3 
      4 ## Customize below to fit your system
      5 # TARGETS is defined by a list of backend-arch-abi-sys. First
      6 # element of the list becomes the default target
      7 
      8 TARGETS = amd64-sysv-linux-elf \
      9           z80-scc-none-none \
     10           i386-sysv-linux-elf \
     11           amd64-sysv-openbsd-elf
     12 
     13 # USEQBE selects QBE by default in the targets that support it
     14 USEQBE = 1
     15 
     16 #MKQBE enable build of qbe backends
     17 MKQBE = 1
     18 
     19 DRIVER = posix
     20 
     21 # Can be c89 or c99
     22 STD = c99
     23 
     24 # paths
     25 PREFIX    = $(HOME)
     26 MANPREFIX = $(PREFIX)/share/man
     27 
     28 # scc expects to be built by a C99 compiler
     29 # if your system is not at least POSIX 2004 compatible, adjust CC
     30 # CC = c99
     31 # AR = ar
     32 AS = as
     33 
     34 SCC_CFLAGS = $(MOREFLAGS) \
     35              $(SYSCFLAGS) \
     36              -g \
     37              $(CFLAGS)
     38 
     39 SCC_LDFLAGS = -L$(LIBDIR)/ $(LDFLAGS)
     40 
     41 .s.o:
     42 	$(AS) $< -o $@
     43 
     44 .c.o:
     45 	$(CC) $(SCC_CFLAGS) -o $@ -c $<
     46 
     47 .c:
     48 	$(CC) $(SCC_CFLAGS) $(SCC_LDFLAGS) -o $@ $<
     49 
     50 # system specific flags