| 1 |
|
| 2 |
################################################################# |
| 3 |
############### acedb: R.Durbin and J.Thierry-Mieg ############## |
| 4 |
################################################################# |
| 5 |
|
| 6 |
################################################################# |
| 7 |
########## Machine dependant compiler modification ############## |
| 8 |
######### for the Microsoft Windows 95, 98 and NT ############# |
| 9 |
####### using the cygwin unix compatibility library and GTK ##### |
| 10 |
################################################################# |
| 11 |
########### This file is included by wmake/truemake ############# |
| 12 |
###### Edit this file to adapt the ACeDB to a new machine ###### |
| 13 |
##### following the explanations given in wmake/truemake ##### |
| 14 |
################################################################# |
| 15 |
|
| 16 |
GTK_BUILD = /cygdrive/i/srk/win32/danah/gtkwin32/src |
| 17 |
|
| 18 |
GTK_INCLUDES = \ |
| 19 |
-I$(GTK_BUILD)/gtk+/gdk/win32 \ |
| 20 |
-I$(GTK_BUILD)/glib \ |
| 21 |
-I$(GTK_BUILD)/gtk+ |
| 22 |
|
| 23 |
GTK_LIBS = \ |
| 24 |
-L$(GTK_BUILD)/glib \ |
| 25 |
-L$(GTK_BUILD)/gtk+/gdk/win32 \ |
| 26 |
-L$(GTK_BUILD)/gtk+/gtk |
| 27 |
|
| 28 |
EXE_SUFFIX = .exe |
| 29 |
|
| 30 |
NAME = CYGWIN # NOT WIN32 as this activates rbsk's code |
| 31 |
|
| 32 |
COMPILER = gcc -g -fwritable-strings -DPOSIX -DACEDB4 $(GTK_INCLUDES) |
| 33 |
|
| 34 |
LINKER = gcc -g |
| 35 |
|
| 36 |
LIBS = -L$(GTK_BUILD)/glib -lglib-1.3 -lm -lreadline -ltermcap \ |
| 37 |
-luser32 -lcomdlg32 -lgdi32 -lwinspool |
| 38 |
XWIN_LIBS = $(GTK_LIBS) -lglib-1.3 -lgdk-1.3 -lgtk-1.3 -Wl,--subsystem,windows |
| 39 |
GRAPHXWIN_DEPEND = libgraph.a libgex.a libgd.a acedb.res |
| 40 |
GRAPHXWIN_LIBS = acedb.res -lgraph -lgex -lgraph -lgd |
| 41 |
|
| 42 |
LEX_LIBS = -lfl |
| 43 |
|
| 44 |
### flex -l emulates AT&T lex as accurately as possible |
| 45 |
LEX = flex |
| 46 |
LEX_OPTIONS = -l |
| 47 |
|
| 48 |
### use bison with flag -y as yacc doesn't exist |
| 49 |
YACC = bison |
| 50 |
YACC_OPTIONS = -y |
| 51 |
|
| 52 |
RPCGEN_FLAGS = -b -I -K -1 |
| 53 |
|
| 54 |
RANLIB_NEEDED = false |
| 55 |
|
| 56 |
|
| 57 |
acedb.res : ../win32/acedb.rc ../win32/icons.ico |
| 58 |
windres $< -O coff $@ |
| 59 |
|
| 60 |
startace: ../win32/startace.c acedb.res |
| 61 |
gcc ../win32/startace.c -Wl,--subsystem,windows acedb.res -o startace |
| 62 |
|
| 63 |
winaceshell: ../win32/winaceshell.c |
| 64 |
gcc ../win32/winaceshell.c -o winaceshell |
| 65 |
|
| 66 |
# These get windows-style line endings before incorporation. |
| 67 |
|
| 68 |
WSPEC_FILES = wingtkrc displays.wrm cachesize.wrm database.wrm\ |
| 69 |
psfonts.wrm constraints.wrm layout.wrm models.wrm\ |
| 70 |
passwd.wrm subclasses.wrm options.wrm |
| 71 |
|
| 72 |
wspec: |
| 73 |
mkdir wspec |
| 74 |
|
| 75 |
database: |
| 76 |
rm -rf database; mkdir database; |
| 77 |
|
| 78 |
dbfiles: wspec database $(WSPEC_FILES) |
| 79 |
rm -f database/ACEDB.wrm; echo 'y\nquit' |./tace .; rm -f database/lock.wrm |
| 80 |
|
| 81 |
$(WSPEC_FILES): wspec ../wspec/$< |
| 82 |
cat ../wspec/$@ | sed -e 's/$$/'`/bin/echo -ne '\r'`'/g' >wspec/$@ |
| 83 |
makedb: ../win32/makedb.iss dbfiles |
| 84 |
compil32 /cc ..\\win32\\makedb.iss |
| 85 |
|
| 86 |
installer.iss: |
| 87 |
rm -f installer.iss; ../win32/BuildInstaller |
| 88 |
|
| 89 |
WinDist : xace tace dotter blixem acediff saceclient saceserver \ |
| 90 |
sxaceclient giface makeUserPasswd\ |
| 91 |
installer.iss ../win32/icons.ico \ |
| 92 |
../win32/copyright.win ../win32/README.3rdParty.txt \ |
| 93 |
../win32/README.txt ../win32/README.fonts.txt \ |
| 94 |
startace winaceshell clean makedb |
| 95 |
compil32 /cc installer.iss |
| 96 |
|
| 97 |
WinDotBlix : dotter blixem |
| 98 |
compil32 /cc ../win32/installDotBlix.iss |
| 99 |
|
| 100 |
################################################################# |
| 101 |
################################################################# |
| 102 |
|