nes-proj/tools/sky/Makefile

31 lines
443 B
Makefile
Raw Normal View History

2012-05-07 20:55:27 +00:00
ifndef HOST_OS
ifeq ($(OS),Windows_NT)
HOST_OS := Windows
else
HOST_OS := $(shell uname)
endif
endif
ifeq ($(HOST_OS),Windows)
SERIALDUMP = serialdump-windows
endif
ifeq ($(HOST_OS),Darwin)
SERIALDUMP = serialdump-macos
endif
ifndef SERIALDUMP
# Assume Linux
SERIALDUMP = serialdump-linux
endif
all: $(SERIALDUMP)
CFLAGS += -Wall -Werror
2012-05-07 20:55:27 +00:00
$(SERIALDUMP): serialdump.c
2015-05-08 07:21:19 +00:00
$(CC) -O2 -o $@ $<
clean:
rm -f $(SERIALDUMP)