2019-08-07 01:30:57 +02:00
|
|
|
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
|
|
|
|
|
2020-12-17 03:24:44 +01:00
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
EXE := .exe
|
|
|
|
else
|
|
|
|
EXE :=
|
|
|
|
endif
|
|
|
|
|
2018-09-15 22:49:31 +02:00
|
|
|
.PHONY: all clean
|
|
|
|
|
2020-12-17 03:24:44 +01:00
|
|
|
all: mid2agb$(EXE)
|
2018-09-15 22:49:31 +02:00
|
|
|
@:
|
2017-12-04 02:55:01 +01:00
|
|
|
|
2020-12-17 03:24:44 +01:00
|
|
|
mid2agb$(EXE): $(SRCS) $(HEADERS)
|
2017-12-04 02:55:01 +01:00
|
|
|
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) mid2agb mid2agb.exe
|