2019-08-06 20:30:57 -03:00
|
|
|
CXX ?= g++
|
2017-12-03 19:55:01 -06:00
|
|
|
|
2018-06-16 18:49:27 -04:00
|
|
|
CXXFLAGS = -Wall -Werror -std=c++11 -O2
|
2017-12-03 19:55:01 -06:00
|
|
|
|
2019-03-03 21:59:57 -05:00
|
|
|
SRCS = scaninc.cpp c_file.cpp asm_file.cpp source_file.cpp
|
2017-12-03 19:55:01 -06:00
|
|
|
|
2019-03-03 21:59:57 -05:00
|
|
|
HEADERS := scaninc.h asm_file.h c_file.h source_file.h
|
2017-12-03 19:55:01 -06:00
|
|
|
|
2019-07-23 16:17:00 -04:00
|
|
|
.PHONY: all clean
|
|
|
|
|
2020-12-16 21:24:44 -05:00
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
EXE := .exe
|
|
|
|
else
|
|
|
|
EXE :=
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: scaninc$(EXE)
|
2019-07-23 16:17:00 -04:00
|
|
|
@:
|
2017-12-03 19:55:01 -06:00
|
|
|
|
2020-12-16 21:24:44 -05:00
|
|
|
scaninc$(EXE): $(SRCS) $(HEADERS)
|
2017-12-03 19:55:01 -06:00
|
|
|
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) scaninc scaninc.exe
|