Makefile.common (727B)
1# Common settings 2ifndef ASM 3ASM = asxxxx 4endif 5 6ifndef MODEL 7MODEL = small 8endif 9 10ifndef PORTS 11PORTS = sm83 z80 12endif 13ifndef PLATFORMS 14PLATFORMS = gb ap duck gg sms msxdos 15endif 16 17ifndef SDCCLIB 18SDCCLIB = $(SDCCDIR) 19endif 20 21SCC = $(SDCCLIB)/bin/sdcc 22GBCC = $(SDCCLIB)/bin/lcc 23SDAR = $(subst \,/,'$(SDCCLIB)')/bin/sdar 24 25 26AS_Z80 = $(SDCCLIB)/bin/sdasz80 27AS_SM83 = $(SDCCLIB)/bin/sdasgb 28 29CLEANSPEC = *.o *.cdb *.sym *.lst *~ *.asm 30 31CFLAGS = -I$(TOPDIR)/include -D__PORT_$(PORT) -D__TARGET_$(THIS) 32CFLAGS += -m$(PORT) 33CFLAGS += --max-allocs-per-node 50000 34CFLAGS += --fsigned-char 35CC = $(SCC) 36BUILD = $(TOPDIR)/build/$(MODEL)/$(ASM)/$(THIS) 37LIB = $(BUILD)/$(THIS).lib 38 39OBJ = $(CSRC:%.c=$(BUILD)/%.o) $(ASSRC:%.s=$(BUILD)/%.o)