git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-lib/Makefile.common

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

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.