From 7055882c93022da3a6a1cf74cebf3d17c44ce6c4 Mon Sep 17 00:00:00 2001 From: oroborus Date: Mon, 12 May 2008 20:39:34 +0000 Subject: - podpora modulov - hra sa musi kompilovat s GUI ako v config.h _zakomenotvane_ #define PUBLIC_SERVER make clean make make mod su make install - hra sa musi ako server kompilovat v config.h _odkomentovane__ #define PUBLIC_SERVER make clean make make mod - pozor, urcite tam je este vela bugov //je to nedoladene zatial to ani nedavajte na server git-svn-id: http://opensvn.csie.org/tuxanci_ng@52 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- modules/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 modules/Makefile (limited to 'modules/Makefile') diff --git a/modules/Makefile b/modules/Makefile new file mode 100755 index 0000000..a3e5588 --- /dev/null +++ b/modules/Makefile @@ -0,0 +1,16 @@ + +CFLAGS = -g -O0 -I../include -Wall + +modTeleport: + gcc $(CFLAGS) -fPIC -I../include `sdl-config --cflags` -c list.c -o list.o + gcc $(CFLAGS) -fPIC -I../include `sdl-config --cflags` -c modTeleport.c -o modTeleport.o + gcc $(CFLAGS) -I../include -shared -fPIC -o modTeleport.so modTeleport.o list.o + +modPipe: + gcc $(CFLAGS) -fPIC -I../include `sdl-config --cflags` -c list.c -o list.o + gcc $(CFLAGS) -fPIC -I../include `sdl-config --cflags` -c modPipe.c -o modPipe.o + gcc $(CFLAGS) -I../include -shared -fPIC -o modPipe.so modPipe.o list.o + +clean: + rm -rf *.o + rm -rf *.so -- cgit v1.2.3