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

CPPFLAGS=-Wall -g -I. -O3 -mcpu=i686 -pedantic -pedantic-errors -Werror
CXX=g++

TARGET = lz77 dlz77 yazedc cd-tool

all: ${TARGET}

lz77: lz77.cpp lz77.h generic.cpp generic.h fileutils.h fileutils.cpp
	${CXX} ${CPPFLAGS} ${LDFLAGS} -DLZ77_MAIN lz77.cpp generic.cpp fileutils.cpp -o lz77

dlz77: lz77
	ln -fs lz77 dlz77

yazedc: yazedc.cpp crctables crctable.out
	${CXX} ${CPPFLAGS} ${LDFLAGS} yazedc.cpp -DMAIN -o yazedc

cd-tool: cd-tool.cpp cdutils.cpp cdutils.h fileutils.cpp fileutils.h generic.cpp generic.h yazedc.cpp yazedc.h
	${CXX} ${CPPFLAGS} ${LDFLAGAS} cd-tool.cpp cdutils.cpp fileutils.cpp yazedc.cpp generic.cpp -o cd-tool

clean:
	rm -f *.o ${TARGET} compil.c