2011-06-04 00:41:55 +02:00
|
|
|
include Makefile.o.dep
|
|
|
|
include Makefile.help.dep
|
|
|
|
|
|
|
|
|
2007-06-24 22:11:14 +02:00
|
|
|
CC = g++
|
2011-01-30 16:00:07 +01:00
|
|
|
CFLAGS = -Wall -pedantic -s -Os -fno-default-inline -mwindows -I../../ttmath -DTTCALC_PORTABLE -DTTMATH_DONT_USE_WCHAR
|
2007-06-24 22:11:14 +02:00
|
|
|
name = ttcalcp.exe
|
|
|
|
compressor = upx
|
|
|
|
|
2011-06-04 00:41:55 +02:00
|
|
|
|
|
|
|
|
2007-06-24 22:11:14 +02:00
|
|
|
all: ttcalc
|
|
|
|
|
|
|
|
|
2011-06-04 00:41:55 +02:00
|
|
|
%.o: %.cpp
|
|
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
|
|
|
|
|
|
|
ttcalc: $(name)
|
|
|
|
|
|
|
|
|
|
|
|
$(name): $(o)
|
2009-10-18 14:40:29 +02:00
|
|
|
$(CC) -o $(name) $(CFLAGS) $(o) -lcomctl32 -lwininet
|
2009-04-02 07:13:27 +02:00
|
|
|
$(compressor) -7 $(name)
|
2011-06-04 00:41:55 +02:00
|
|
|
|
|
|
|
|
2007-06-24 22:11:14 +02:00
|
|
|
resource.o: resource.rc
|
|
|
|
windres -DTTCALC_PORTABLE resource.rc resource.o
|
2009-06-11 18:07:18 +02:00
|
|
|
|
|
|
|
|
2011-06-04 00:41:55 +02:00
|
|
|
include Makefile.cpp.dep
|