2019-08-07 01:30:57 +02:00
|
|
|
CXX ?= g++
|
2017-12-04 02:55:01 +01:00
|
|
|
|
2018-06-17 00:49:27 +02:00
|
|
|
CXXFLAGS = -Wall -Werror -std=c++11 -O2
|
2017-12-04 02:55:01 +01:00
|
|
|
|
2019-03-04 03:59:57 +01:00
|
|
|
SRCS = scaninc.cpp c_file.cpp asm_file.cpp source_file.cpp
|
2017-12-04 02:55:01 +01:00
|
|
|
|
2019-03-04 03:59:57 +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
|
|
|
|
|
2020-12-17 03:24:44 +01:00
|
|
|
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
|
|
|
|
2020-12-17 03:24:44 +01:00
|
|
|
scaninc$(EXE): $(SRCS) $(HEADERS)
|
2017-12-04 02:55:01 +01:00
|
|
|
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) scaninc scaninc.exe
|