pokeemerald/tools/ramscrgen/Makefile

25 lines
378 B
Makefile
Raw Permalink Normal View History

CXX ?= g++
2017-12-04 02:55:01 +01:00
CXXFLAGS := -std=c++11 -O2 -Wall -Wno-switch -Werror
2017-12-04 02:55:01 +01:00
SRCS := main.cpp sym_file.cpp elf.cpp
HEADERS := ramscrgen.h sym_file.h elf.h char_util.h
2019-07-23 22:17:00 +02:00
.PHONY: all clean
ifeq ($(OS),Windows_NT)
EXE := .exe
else
EXE :=
endif
all: ramscrgen$(EXE)
2019-07-23 22:17:00 +02:00
@:
2017-12-04 02:55:01 +01:00
ramscrgen$(EXE): $(SRCS) $(HEADERS)
2017-12-04 02:55:01 +01:00
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
clean:
$(RM) ramscrgen ramscrgen.exe