pokeemerald/tools/scaninc/Makefile

25 lines
381 B
Makefile
Raw Normal View History

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