fixed: option: "parameters separated by" was not correctly read from the config file added: the setup program now addes language.setup key to the ttcalc.ini (it creates ttcalc.ini if it doesn't exist) so when ttcalc starts for the first time it can choose the same language git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@352 e52654a7-88a9-db11-a3e9-0013d4bc506e
67 lines
1.5 KiB
Makefile
67 lines
1.5 KiB
Makefile
include Makefile.o.dep
|
|
include Makefile.help.dep
|
|
|
|
CC = g++
|
|
#CFLAGS = -Wall -pedantic -s -O2 -mwindows -I../../ttmath -DTTCALC_CONVERT
|
|
CFLAGS = -Wall -pedantic -s -O2 -mwindows -I../../ttmath -DTTMATH_DONT_USE_WCHAR
|
|
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
|
|
|
|
|
|
%.o: %.cpp
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
|
ttcalc: $(name)
|
|
|
|
|
|
$(name): $(o)
|
|
$(CC) -o $(name) $(CFLAGS) $(o) -lcomctl32 -lwininet
|
|
|
|
|
|
resource.o: resource.rc
|
|
#windres -DTTCALC_CONVERT resource.rc resource.o
|
|
windres resource.rc resource.o
|
|
|
|
|
|
help: ../help/$(helpname)
|
|
|
|
|
|
../help/$(helpname): $(helpsrc)
|
|
Makefile.help.sh
|
|
|
|
|
|
setup: ../setup/$(setupname)
|
|
|
|
|
|
../setup/$(setupname): $(name) ../help/$(helpname) ../setup/innosetup.iss ../setup/COPYRIGHT ../COPYRIGHT ../CHANGELOG ../README
|
|
iscc ../setup/innosetup.iss
|
|
|
|
|
|
depend:
|
|
makedepend -Y. -I../../ttmath -f- *.cpp | sed "s/[\\]/\//g" > Makefile.cpp.dep
|
|
echo -n "o = resource.o " > Makefile.o.dep
|
|
ls -1 *.cpp | xargs -I foo echo -n foo " " | sed -E "s/([^\.]*)\.cpp[ ]/\1\.o/g" >> Makefile.o.dep
|
|
echo -n "helpsrc = " > Makefile.help.dep
|
|
ls -1 ../help/*.html ../help/*.css ../help/*.hhp ../help/*.hhk ../help/*.hhc | xargs -I foo echo -n foo " " >> Makefile.help.dep
|
|
|
|
|
|
clean:
|
|
rm -f *.o
|
|
rm -f $(name)
|
|
rm -f ttcalcp.exe
|
|
rm -f ../help/$(helpname)
|
|
rm -f ../setup/$(setupname)
|
|
|
|
|
|
include Makefile.cpp.dep
|