44 lines
761 B
Makefile
44 lines
761 B
Makefile
CC = g++
|
|
#CFLAGS = -Wall -pedantic -s -O2 -mwindows -I../../ttmath -DTTCALC_CONVERT
|
|
CFLAGS = -Wall -pedantic -s -O2 -mwindows -I../../ttmath
|
|
name = ttcalc.exe
|
|
|
|
# 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
|
|
|
|
|
|
|
|
all: ttcalc
|
|
|
|
|
|
include Makefile.dep
|
|
|
|
|
|
ttcalc: $(o)
|
|
$(CC) -o $(name) $(CFLAGS) $(o) -lcomctl32
|
|
|
|
|
|
resource.o: resource.rc
|
|
#windres -DTTCALC_CONVERT resource.rc resource.o
|
|
windres resource.rc resource.o
|
|
|
|
|
|
help: $(helpdep)
|
|
Makefile.help.sh
|
|
|
|
|
|
|
|
setup: $(setupdep)
|
|
iscc ../setup/innosetup.iss
|
|
|
|
|
|
clean:
|
|
rm -f *.o
|
|
rm -f $(name)
|
|
rm -f ttcalcp.exe
|
|
rm -f ../help/$(helpname)
|
|
rm -f ../setup/$(setupname)
|