2017-01-07 02:13:20 +00:00
|
|
|
CXXFLAGS= -O3 -fomit-frame-pointer
|
|
|
|
override CXXFLAGS+= -Wall -fsigned-char
|
|
|
|
|
|
|
|
PLATFORM= $(shell uname -s)
|
|
|
|
ifeq (,$(findstring MINGW,$(PLATFORM)))
|
|
|
|
CXX=i686-w64-mingw32-g++
|
|
|
|
endif
|
|
|
|
|
|
|
|
LIBS= -mwindows -static -static-libgcc -static-libstdc++
|
|
|
|
IQM_OBJS= \
|
|
|
|
iqm.o
|
|
|
|
UPGRADE_OBJS= \
|
|
|
|
upgrade.o
|
|
|
|
|
|
|
|
default: all
|
|
|
|
|
2017-01-13 00:42:51 +00:00
|
|
|
all: iqm.exe #upgrade.exe
|
2017-01-07 02:13:20 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-$(RM) $(IQM_OBJS) $(UPGRADE_OBJS) iqm.exe upgrade.exe
|
|
|
|
|
|
|
|
iqm.exe: $(IQM_OBJS)
|
|
|
|
$(CXX) $(CXXFLAGS) -o iqm.exe $(IQM_OBJS) $(LIBS)
|
|
|
|
upgrade.exe: $(UPGRADE_OBJS)
|
|
|
|
$(CXX) $(CXXFLAGS) -o upgrade.exe $(UPGRADE_OBJS) $(LIBS)
|
|
|
|
|