xwords/xwords4/symbian/group/Makefile

62 lines
1.8 KiB
Makefile
Raw Normal View History

2005-01-04 05:31:36 +01:00
# -*- mode: makefile; -*-
# The braindead build system doesn't remove object files from these
# dirs. So add to the clean target manually
2005-02-04 06:17:44 +01:00
# COMMON_OBJ_DIR = $(EPOC)/BUILD/CYGWIN$(shell pwd)/xwords/symbian/group/common/armi/urel
# XWORDS_OBJ_DIR = $(EPOC)/BUILD/CYGWIN$(shell pwd)/xwords/symbian/group/XWORDS/armi/urel
2005-01-04 05:31:36 +01:00
2005-01-20 03:53:07 +01:00
# BLDMAKE_FLAGS = -v
2005-01-04 05:31:36 +01:00
2005-02-04 06:17:44 +01:00
# There are no rules for building these puppies -- the symbian build
# system does that. But they'd better exist by the time we get to the
# .pkg target.
SISFILES = \
$(EPOC)/release/armi/urel/xwords.APP \
$(EPOC)\\data/z/system/apps/xwords/xwords.rsc \
$(EPOC)\\data/z/system/apps/xwords/xwords.aif \
$(EPOC)\\data/z/system/apps/xwords/xwords.mbm \
../../dawg/English/BasEnglish2to8.xwd \
2005-01-04 05:31:36 +01:00
all: wins
2005-01-31 03:24:51 +01:00
ABLD.BAT:
2005-01-04 05:31:36 +01:00
bldmake $(BLDMAKE_FLAGS) bldfiles
2005-01-09 19:37:22 +01:00
2005-01-31 03:24:51 +01:00
wins: ABLD.BAT
$< build $(BLDMAKE_FLAGS) wins udeb
2005-02-04 06:17:44 +01:00
armi: ABLD.BAT
2005-01-31 03:24:51 +01:00
$< build $(BLDMAKE_FLAGS) armi urel
2005-01-04 05:31:36 +01:00
# depends on wins because that's where the .aif file gets built
2005-02-04 06:17:44 +01:00
sis: wins armi xwords.pkg
makesis -v xwords.pkg
# If this xwords.pkg target generates errors -- especially the &EN
# part -- you're probably running symbian's make instead of cygwin's.
# Try invoking this Makefile with /usr/bin/make explicitly:
# /usr/bin/make sis
xwords.pkg: Makefile $(SISFILES)
rm -f $@
@echo "&EN" | tr -d '\r' >> $@
2005-01-09 19:37:22 +01:00
@echo '#{"Crosswords"},(0x10206D64),1,0,0' | tr -d '\r' >> $@
2005-02-04 06:17:44 +01:00
@for f in $(SISFILES); do \
bname=$$(basename "$$f"); \
echo \"$$f\"-\"C:\\system\\apps\\xwords\\$$bname\" >> $@; \
done
2005-01-04 05:31:36 +01:00
# build project files for M$ VC++ version 6, e.g. for source-level
# debugging
vc6:
makmake.exe xwords vc6
clean:
2005-02-04 06:17:44 +01:00
rm -f xwords.SIS xwords.pkg
rm -f $(COMMON_OBJ_DIR)/*.o
rm -f $(XWORDS_OBJ_DIR)/*.o
2005-02-04 06:17:44 +01:00
if [ -f abLD.BAT ]; then \
./abLD.BAT clean wins udeb; \
./abLD.BAT clean armi udeb; \
fi
2005-01-04 05:31:36 +01:00
bldmake $(BLDMAKE_FLAGS) clean