43 lines
870 B
Makefile
43 lines
870 B
Makefile
CC = g++
|
|
CFLAGS = -Wall -pedantic -s -O2 -mwindows -mthreads -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
|
|
|
|
|
|
dir_output = ../../output
|
|
|
|
all: ttcalc
|
|
|
|
include Makefile.dep
|
|
|
|
$(dir_output)/$(name): $(o)
|
|
$(CC) -o $(dir_output)/$(name) $(CFLAGS) $(o) -lcomctl32
|
|
|
|
ttcalc: $(dir_output)/$(name)
|
|
|
|
resource.o: resource.rc
|
|
windres resource.rc resource.o
|
|
|
|
$(dir_output)/$(helpname): $(helpdep)
|
|
Makefile.help.sh
|
|
|
|
help: $(dir_output)/$(helpname)
|
|
|
|
$(dir_output)/$(setupname): $(setupdep)
|
|
iscc ../setup/innosetup.iss
|
|
|
|
setup: $(dir_output)/$(setupname)
|
|
|
|
|
|
clean:
|
|
rm -f *.o
|
|
rm -f *.s
|
|
rm -f $(dir_output)/$(name)
|
|
rm -f $(dir_output)/$(helpname)
|
|
rm -f $(dir_output)/$(setupname)
|