2007-06-24 22:11:14 +02:00
|
|
|
CC = g++
|
2009-04-02 07:13:27 +02:00
|
|
|
CFLAGS = -Wall -pedantic -s -Os -fno-default-inline -mwindows -I../../ttmath -DTTCALC_PORTABLE
|
2007-06-24 22:11:14 +02:00
|
|
|
name = ttcalcp.exe
|
|
|
|
compressor = upx
|
|
|
|
|
|
|
|
all: ttcalc
|
|
|
|
|
|
|
|
include Makefile.dep
|
|
|
|
|
2009-04-02 07:13:27 +02:00
|
|
|
ttcalc: $(o)
|
|
|
|
$(CC) -o $(name) $(CFLAGS) $(o) -lcomctl32
|
|
|
|
$(compressor) -7 $(name)
|
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
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f $(name)
|
|
|
|
rm -f ../help/$(helpname)
|
|
|
|
|