summaryrefslogtreecommitdiff
path: root/PE/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'PE/Makefile')
-rw-r--r--PE/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/PE/Makefile b/PE/Makefile
new file mode 100644
index 0000000..d12149e
--- /dev/null
+++ b/PE/Makefile
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+
+CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -I../includes -DHAVE_ZLIB `baltisot-config --cflags`
+CXX=g++
+CC=gcc
+LEX=flex -l
+
+LIBS=-lz
+#-lefence
+LDFLAGS=${LIBS} `baltisot-config --libs`
+#`pkg-config --libs glib-2.0`
+
+TARGET = reinsert compil extract extract-various extract-rooms
+
+all: ${TARGET}
+
+reinsert: reinsert.o ../includes/cdutils.h ../includes/yazedc.h ../lib/lib.a Makefile
+ ${CXX} ${LDFLAGS} reinsert.o ../lib/lib.a -o reinsert
+
+compil: compil.o
+ ${CC} ${LDFLAGS} compil.o -o compil
+
+compil.c: compil.lex
+ ${LEX} -ocompil.c compil.lex
+
+clean:
+ rm -f *.o ${TARGET} compil.c