cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

Makefile (578B)


      1# makecom 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 = $(TOOLSPREFIX)gcc
     19CFLAGS = -ggdb -O -Wno-incompatible-pointer-types -DGBDKLIBDIR=\"$(TARGETDIR)\"
     20OBJ = makecom.o noi_file.o files.o bin_to_com.o list.o path_ops.o
     21BIN = makecom
     22
     23all: $(BIN)
     24
     25$(BIN): $(OBJ)
     26
     27clean:
     28	rm -f *.o $(BIN) *~
     29	rm -f tmp.*
     30	rm -f *.exe
     31
     32