2007-01-22 12:12:01 +01:00
|
|
|
CC = g++
|
2009-10-16 20:41:09 +02:00
|
|
|
#CFLAGS = -Wall -pedantic -s -O2 -mwindows -I../../ttmath -DTTMATH_RELEASE -DTTCALC_CONVERT
|
|
|
|
CFLAGS = -Wall -pedantic -s -O2 -mwindows -I../../ttmath -DTTMATH_RELEASE
|
2007-01-22 12:12:01 +01:00
|
|
|
name = ttcalc.exe
|
2007-08-05 22:31:46 +02:00
|
|
|
|
|
|
|
# the name of the help is also set in the html help workshop project file
|
|
|
|
helpname = ttcalc.chm
|
|
|
|
|
|
|
|
# the name of the setup is also set in the Inno Setup config file
|
|
|
|
setupname = ttcalc-setup.exe
|
2009-04-02 07:13:27 +02:00
|
|
|
|
2007-08-05 22:31:46 +02:00
|
|
|
|
2007-01-22 12:12:01 +01:00
|
|
|
|
|
|
|
all: ttcalc
|
|
|
|
|
2009-04-02 07:13:27 +02:00
|
|
|
|
2007-06-24 22:11:14 +02:00
|
|
|
include Makefile.dep
|
2007-01-22 12:12:01 +01:00
|
|
|
|
2009-06-15 04:41:56 +02:00
|
|
|
|
2009-04-02 07:13:27 +02:00
|
|
|
ttcalc: $(o)
|
2009-10-18 00:13:14 +02:00
|
|
|
$(CC) -o $(name) $(CFLAGS) $(o) -lcomctl32 -lwininet
|
2009-04-02 07:13:27 +02:00
|
|
|
|
2009-06-15 04:41:56 +02:00
|
|
|
|
2007-01-22 12:12:01 +01:00
|
|
|
resource.o: resource.rc
|
2009-03-28 19:26:20 +01:00
|
|
|
#windres -DTTCALC_CONVERT resource.rc resource.o
|
2007-01-22 12:12:01 +01:00
|
|
|
windres resource.rc resource.o
|
|
|
|
|
2007-08-05 22:31:46 +02:00
|
|
|
|
2009-04-02 07:13:27 +02:00
|
|
|
help: $(helpdep)
|
|
|
|
Makefile.help.sh
|
2009-06-15 04:41:56 +02:00
|
|
|
|
|
|
|
|
2007-08-05 22:31:46 +02:00
|
|
|
|
2009-04-02 07:13:27 +02:00
|
|
|
setup: $(setupdep)
|
2007-08-05 22:31:46 +02:00
|
|
|
iscc ../setup/innosetup.iss
|
|
|
|
|
|
|
|
|
2007-01-22 12:12:01 +01:00
|
|
|
clean:
|
|
|
|
rm -f *.o
|
2009-04-02 07:13:27 +02:00
|
|
|
rm -f $(name)
|
2009-06-30 21:18:47 +02:00
|
|
|
rm -f ttcalcp.exe
|
2009-06-11 18:07:18 +02:00
|
|
|
rm -f ../help/$(helpname)
|
|
|
|
rm -f ../setup/$(setupname)
|