Makefile (471B)
1# bankcheck (auto bank tool) makefile 2 3ifndef TARGETDIR 4TARGETDIR = /opt/gbdk 5endif 6 7ifeq ($(OS),Windows_NT) 8 BUILD_OS := Windows_NT 9else 10 BUILD_OS := $(shell uname -s) 11endif 12 13# Target older macOS version than whatever build OS is for better compatibility 14ifeq ($(BUILD_OS),Darwin) 15 export MACOSX_DEPLOYMENT_TARGET=10.10 16endif 17 18CC = 19CFLAGS = 20OBJ = 21BIN = makecom 22 23all: $(BIN) 24 25$(BIN): makecom.dpr 26 fpc -B $< 27 28clean: 29 rm -f *.o $(BIN) *~ *.dof *.cfg *.dsk 30 rm -f *.exe 31