git.y1.nz

gbdk-2020

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

gbdk-support/romusage/Makefile

      1 ifndef TARGETDIR
      2 TARGETDIR = /opt/gbdk
      3 endif
      4 
      5 ifeq ($(OS),Windows_NT)
      6 	BUILD_OS := Windows_NT
      7   LDFLAGS = -s -static
      8 else
      9 	BUILD_OS := $(shell uname -s)
     10   LDFLAGS = -s
     11 endif
     12 
     13 # Target older macOS version than whatever build OS is for better compatibility
     14 ifeq ($(BUILD_OS),Darwin)
     15 	export MACOSX_DEPLOYMENT_TARGET=10.10
     16 endif
     17 
     18 CC = $(TOOLSPREFIX)gcc
     19 CFLAGS = -O -Wno-incompatible-pointer-types -DGBDKLIBDIR=\"$(TARGETDIR)\"
     20 CFLAGS += -Isrc
     21 OBJ = src/banks.c \
     22 src/banks_print.c \
     23 src/bank_templates.c \
     24 src/common.c \
     25 src/list.c \
     26 src/map_file.c \
     27 src/rom_file.c \
     28 src/banks_color.c \
     29 src/banks_summarized.c \
     30 src/cdb_file.c \
     31 src/ihx_file.c \
     32 src/logging.c \
     33 src/noi_file.c \
     34 src/romusage.c
     35 
     36 
     37 BIN = romusage
     38 
     39 all: $(BIN)
     40 
     41 $(BIN): $(OBJ)
     42 	$(CC) -o $(BIN)  $^ $(CFLAGS) $(LDFLAGS)
     43 
     44 clean:
     45 	rm -f *.o $(BIN) *~ src/*.o
     46 	rm -f *.exe
     47 

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