git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-support/png2hicolorgb/Makefile

      1 ifndef TARGETDIR
      2 TARGETDIR = /opt/gbdk
      3 endif
      4 
      5 ifeq ($(OS),Windows_NT)
      6 	BUILD_OS := Windows_NT
      7   LDFLAGS = -s -static
      8 else
      9 	BUILD_OS := $(shell uname -s)
     10   LDFLAGS = -s
     11 endif
     12 
     13 # Target older macOS version than whatever build OS is for better compatibility
     14 ifeq ($(BUILD_OS),Darwin)
     15 	export MACOSX_DEPLOYMENT_TARGET=10.10
     16 endif
     17 
     18 CC = $(TOOLSPREFIX)gcc
     19 CFLAGS = -O -Wno-incompatible-pointer-types -DGBDKLIBDIR=\"$(TARGETDIR)\"
     20 CFLAGS += -Isrc -Isrc/lodepng -Isrc/hicolor
     21 OBJ = src/common.o \
     22 src/tile_dedupe.o \
     23 src/lodepng/lodepng.o \
     24 src/hicolor/Wu.o \
     25 src/hicolor/median.o \
     26 src/hicolor/hicolour.o \
     27 src/c_source.o \
     28 src/logging.o \
     29 src/files.o \
     30 src/options.o \
     31 src/main.o \
     32 src/path_ops.o \
     33 src/image_load.o
     34 
     35 BIN = png2hicolorgb
     36 
     37 all: $(BIN)
     38 
     39 $(BIN): $(OBJ)
     40 	$(CC) -o $(BIN)  $^ $(CFLAGS) $(LDFLAGS)
     41 
     42 clean:
     43 	rm -f *.o $(BIN) *~ src/*.o src/lodepng/*.o src/hicolor/*.o
     44 	rm -f *.exe
     45 

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.