| 1 |
# Makefile for Windows Git, compiled with MinGW GCC 2.95 |
| 2 |
|
| 3 |
CC = gcc-2 -Wall -O3 -mwindows |
| 4 |
OPTIONS = -DUSE_INLINE -DUSE_DIRECT_THREADING -DUSE_OWN_POWF |
| 5 |
LIBS = -L. -lglk |
| 6 |
|
| 7 |
OUTPUT = ../Executables/Release/Git |
| 8 |
|
| 9 |
CFLAGS = $(OPTIONS) -I../Include |
| 10 |
|
| 11 |
OBJS = git.o memory.o compiler.o opcodes.o operands.o peephole.o terp.o \ |
| 12 |
glkop.o search.o git_windows.o savefile.o saveundo.o gestalt.o \ |
| 13 |
accel.o heap.o glk.o res.o |
| 14 |
|
| 15 |
all: git chm |
| 16 |
|
| 17 |
git: $(OBJS) libglk.a |
| 18 |
$(CC) -s -o $(OUTPUT) $(OBJS) $(LIBS) |
| 19 |
|
| 20 |
glk.o: ../glk.c |
| 21 |
$(CC) $(CFLAGS) -c -o $@ $^ |
| 22 |
|
| 23 |
res.o: win/git.rc |
| 24 |
windres --preprocessor "gcc-2 -E -xc-header -DRC_INVOKED" $^ $@ |
| 25 |
|
| 26 |
libglk.a: |
| 27 |
dlltool --dllname=Glk.dll --def=../GlkDll/Glk.def --output-lib=libglk.a |
| 28 |
|
| 29 |
chm: |
| 30 |
-C:\\Program\ Files\ \(x86\)\\HTML\ Help\ Workshop\\hhc help\\Git.hhp |
| 31 |
copy help\\Git.chm ..\\Executables\\Release |
| 32 |
|
| 33 |
clean: |
| 34 |
del *.o *.a |
| 35 |
|