mirror of
https://github.com/gbdk-2020/gbdk-2020.git
synced 2026-03-03 05:54:33 +01:00
33 lines
578 B
Makefile
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
|
|
|
|
|