pokeemerald/tools/mid2agb/Makefile

25 lines
383 B
Makefile
Raw Permalink Normal View History

CXX ?= g++
2017-12-04 02:55:01 +01:00
2018-10-17 14:55:09 +02:00
CXXFLAGS := -std=c++11 -O2 -Wall -Wno-switch -Werror
2017-12-04 02:55:01 +01:00
SRCS := agb.cpp error.cpp main.cpp midi.cpp tables.cpp
HEADERS := agb.h error.h main.h midi.h tables.h
ifeq ($(OS),Windows_NT)
EXE := .exe
else
EXE :=
endif
.PHONY: all clean
all: mid2agb$(EXE)
@:
2017-12-04 02:55:01 +01:00
mid2agb$(EXE): $(SRCS) $(HEADERS)
2017-12-04 02:55:01 +01:00
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
clean:
$(RM) mid2agb mid2agb.exe