# Generated automatically from Makefile.in by configure.
CFLAGS=-D__EMX__ -DOS2  -D__ST_MT_ERRNO__ -g -O3  -Wall -W -Wstrict-prototypes -Wno-parentheses -fomit-frame-pointer 
#-malign-functions=0
LDFLAGS= -Zomf -Zmap -Zargs-wild -D__ST_MT_ERRNO__ -Zsysv-signals -Zbin-files -Zexe
LIBS= 
XLIBS=
CC=gcc


all: server 0verkill   editor test_server avi bot 

clean:
	rm -f *.o server 0verkill editor test_server x0verkill xeditor avi xavi bot core

bot.o: bot.c config.h sprite.h data.h cfg.h net.h hash.h time.h math.h getopt.h error.h
avi.o: avi.c console.h blit.h time.h help.h error.h
blit.o: blit.c blit.h console.h cfg.h config.h error.h
net.o: net.c net.h crc32.h error.h
crc32.o: crc32.c crc32.h error.h
hash.o: hash.c hash.h data.h error.h
console.o: console.c console.h kbd.h kbd.c config.h error.h
kbd.o: kbd.c kbd.h cfg.h console.h error.h
sprite.o: sprite.c sprite.h console.h cfg.h data.h blit.h config.h md5.h error.h
data.o: data.c cfg.h data.h hash.h time.h math.h config.h error.h
server.o: server.c server.h net.h data.h hash.h cfg.h time.h math.h config.h error.h
client.o: client.c data.h sprite.h cfg.h net.h hash.h time.h math.h console.h help.h blit.h config.h error.h
xclient.o: client.c data.h sprite.h cfg.h net.h hash.h time.h math.h console.h help.h config.h error.h
	gcc -c $(CFLAGS) -DXWINDOW -o xclient.o client.c
time.o: time.c time.h error.h
help.o:	help.c blit.h error.h
avihelp.o: avihelp.c blit.h error.h
editor.o: editor.c sprite.h console.h data.h cfg.h hash.h time.h math.h blit.h error.h
test_server.o: test_server.c net.h data.h error.h
xinterface.o: xinterface.c console.h kbd.h x.h cfg.h icon.h config.h error.h
xkbd.o: xkbd.c kbd.h console.h x.h cfg.h time.h error.h
md5.o: md5.c md5.h error.h
md5hl.o: md5hl.c md5.h error.h
error.o: error.c error.h


avi: avi.o blit.o console.o kbd.o time.o avihelp.o error.o
	gcc $(LDFLAGS) -o avi avi.o blit.o console.o kbd.o error.o time.o avihelp.o $(LIBS)

xavi: avi.o blit.o xinterface.o xkbd.o time.o avihelp.o error.o
	gcc $(LDFLAGS) -o xavi avi.o blit.o xinterface.o xkbd.o error.o time.o avihelp.o $(LIBS) $(XLIBS)

bot: bot.o data.o hash.o time.o net.o crc32.o md5.o md5hl.o error.o
	gcc $(LDFLAGS) -o bot bot.o data.o hash.o time.o net.o error.o md5.o md5hl.o crc32.o sprite.o $(LIBS)

0verkill: client.o data.o sprite.o blit.o console.o hash.o time.o net.o error.o crc32.o md5.o md5hl.o kbd.o help.o
	gcc $(LDFLAGS) -o 0verkill client.o data.o sprite.o blit.o console.o error.o hash.o time.o md5.o md5hl.o kbd.o net.o crc32.o help.o $(LIBS)
	emxbind -e -f -q 0verkill.exe

x0verkill: xclient.o data.o sprite.o blit.o xinterface.o hash.o time.o net.o crc32.o error.o xkbd.o help.o md5.o md5hl.o
	gcc $(LDFLAGS) -o x0verkill xclient.o data.o blit.o sprite.o xinterface.o xkbd.o error.o md5.o md5hl.o hash.o time.o net.o crc32.o help.o $(LIBS) $(XLIBS)

server: server.o data.o sprite.o blit.o console.o hash.o time.o kbd.o net.o crc32.o md5.o md5hl.o error.o
	gcc $(LDFLAGS) -o server server.o data.o sprite.o blit.o console.o hash.o time.o kbd.o md5.o md5hl.o error.o net.o crc32.o $(LIBS)

editor: editor.o data.o blit.o sprite.o console.o hash.o time.o kbd.o md5.o md5hl.o error.o 
	gcc $(LDFLAGS) -o editor editor.o data.o blit.o sprite.o console.o hash.o md5.o md5hl.o error.o time.o kbd.o $(LIBS) 

xeditor: editor.o data.o blit.o sprite.o xinterface.o hash.o time.o xkbd.o md5.o md5hl.o error.o
	gcc $(LDFLAGS) -o xeditor editor.o data.o blit.o sprite.o xinterface.o hash.o md5.o error.o md5hl.o time.o xkbd.o $(LIBS) $(XLIBS)

test_server: test_server.o net.o data.o crc32.o blit.o sprite.o time.o hash.o console.o kbd.o md5.o md5hl.o error.o 
	gcc $(LDFLAGS) -o test_server test_server.o net.o data.o crc32.o blit.o sprite.o time.o hash.o md5.o md5hl.o error.o console.o kbd.o $(LIBS) 
