2005-01-12 00:11:08 +00:00
|
|
|
DIRS=generator parser glib pango atk gdk gtk glade gtkdotnet
|
2002-05-02 21:57:41 +00:00
|
|
|
ROOT=/cygdrive/$(subst \,/,$(subst :\,/,$(SYSTEMROOT)))
|
2005-01-13 20:27:44 +00:00
|
|
|
#pesky spaces - blame zbowling if this fails
|
|
|
|
PROGFILES=`cygpath \`cygpath -m -s "$(PROGRAMFILES)"\``
|
|
|
|
|
|
|
|
## --- C# Compiler ---
|
|
|
|
## Mono v1.1.3
|
|
|
|
#CSC=$(PROGFILES)/Mono-1.1.3/bin/mcs.bat /d:WIN32
|
|
|
|
##.NET v1.1.4322
|
|
|
|
#CSC=$(ROOT)/microsoft.net/framework/v1.1.4322/csc.exe /d:WIN32
|
|
|
|
##.NET v1.0.3705
|
2002-10-27 02:30:51 +00:00
|
|
|
CSC=$(ROOT)/microsoft.net/framework/v1.0.3705/csc.exe /d:WIN32
|
2002-05-02 21:57:41 +00:00
|
|
|
|
2005-01-13 20:27:44 +00:00
|
|
|
## --- GACUTIL ---
|
|
|
|
## .NET gacutil
|
|
|
|
#GACUTIL=gacutil.exe
|
|
|
|
## Mono gacutil
|
|
|
|
GACUTIL=gacutil.bat
|
|
|
|
|
|
|
|
|
2002-05-02 21:57:41 +00:00
|
|
|
all: windows
|
|
|
|
|
|
|
|
windows:
|
|
|
|
for i in $(DIRS); do \
|
2005-01-13 20:27:44 +00:00
|
|
|
(cp gtk-sharp.snk $$i; cd $$i; CSC="$(CSC)" make -f makefile.win32) || exit 1;\
|
2002-05-02 21:57:41 +00:00
|
|
|
done;
|
|
|
|
|
2003-09-07 10:56:40 +00:00
|
|
|
clean:
|
|
|
|
for i in $(DIRS); do \
|
2003-10-10 18:58:19 +00:00
|
|
|
(cd $$i; make -f makefile.win32 clean) || exit 1;\
|
2003-09-07 10:56:40 +00:00
|
|
|
done;
|
2005-01-13 20:27:44 +00:00
|
|
|
`rm -r lib`
|
2003-09-07 10:56:40 +00:00
|
|
|
|
|
|
|
release: clean windows
|
2005-01-13 20:27:44 +00:00
|
|
|
`mkdir -p lib`
|
2003-09-07 10:56:40 +00:00
|
|
|
find $(DIRS) -iname "*.dll" -exec cp \{\} lib \;
|
|
|
|
|
2005-01-13 20:27:44 +00:00
|
|
|
gac: release
|
|
|
|
find -iname "*-sharp.dll" -exec $(GACUTIL) /i \{\} \;
|