summaryrefslogtreecommitdiff
path: root/PE/Makefile
blob: 2d404ab7b299cb416d08373d7d42ade8d2573985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f

CPPFLAGS=-Wall -g -O3 -mcpu=i686 -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