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 := -std=c++11 -O2 -Wall -Wno-switch -Werror
|
2017-12-04 02:55:01 +01:00
|
|
|
|
|
|
|
SRCS := main.cpp sym_file.cpp elf.cpp
|
|
|
|
|
|
|
|
HEADERS := ramscrgen.h sym_file.h elf.h char_util.h
|
|
|
|
|
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: ramscrgen$(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
|
|
|
ramscrgen$(EXE): $(SRCS) $(HEADERS)
|
2017-12-04 02:55:01 +01:00
|
|
|
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) ramscrgen ramscrgen.exe
|