Files
gbdk-2020/gbdk-support/makecom/Makefile
2022-03-09 17:05:03 -08:00

33 lines
578 B
Makefile

# makecom makefile
ifndef TARGETDIR
TARGETDIR = /opt/gbdk
endif
ifeq ($(OS),Windows_NT)
BUILD_OS := Windows_NT
else
BUILD_OS := $(shell uname -s)
endif
# Target older macOS version than whatever build OS is for better compatibility
ifeq ($(BUILD_OS),Darwin)
export MACOSX_DEPLOYMENT_TARGET=10.10
endif
CC = $(TOOLSPREFIX)gcc
CFLAGS = -ggdb -O -Wno-incompatible-pointer-types -DGBDKLIBDIR=\"$(TARGETDIR)\"
OBJ = makecom.o noi_file.o files.o bin_to_com.o list.o path_ops.o
BIN = makecom
all: $(BIN)
$(BIN): $(OBJ)
clean:
rm -f *.o $(BIN) *~
rm -f tmp.*
rm -f *.exe