gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-support/lcc/Makefile
1 # Simple Makefile for the lcc frontend.
2
3 ifndef TARGETDIR
4 TARGETDIR = /opt/gbdk
5 endif
6
7 # MacOS date doesn't support '--utc', use '-u'
8 BUILDDATE=$(shell date -u +%Y/%m/%d)
9 BUILDTIME=$(shell date -u +%H:%M:%S)
10
11 ifeq ($(OS),Windows_NT)
12 BUILD_OS := Windows_NT
13 else
14 BUILD_OS := $(shell uname -s)
15 endif
16
17 # Target older macOS version than whatever build OS is for better compatibility
18 ifeq ($(BUILD_OS),Darwin)
19 export MACOSX_DEPLOYMENT_TARGET=10.10
20 endif
21
22
23 CC = $(TOOLSPREFIX)gcc
24 CFLAGS = -ggdb -O -Wno-incompatible-pointer-types -DGBDKLIBDIR=\"$(TARGETDIR)\"
25 CFLAGS += -DBUILDDATE=\"$(BUILDDATE)\" -DBUILDTIME=\"$(BUILDTIME)\"
26 ifdef BINDIR
27 CFLAGS += -DGBDKBINDIR=\"$(BINDIR)\"
28 endif
29 OBJ = lcc.o gb.o targets.o list.o
30 BIN = lcc
31
32 all: $(BIN)
33
34 $(BIN): $(OBJ)
35
36 clean:
37 rm -f *.o $(BIN) *~
38 rm -f *.exe
39
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.