File: Makefile

package info (click to toggle)
cdcover 0.9.1-8
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 344 kB
  • ctags: 334
  • sloc: cpp: 2,637; makefile: 124
file content (39 lines) | stat: -rw-r--r-- 952 bytes parent folder | download | duplicates (5)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
CC=g++
INSTDIR=/usr/local/bin
CFLAGS=-Wall
STRINGLIB=bytevector.o stringlist.o

ccc: ccc.o
	$(CC) $(STRINGLIB) texmaker.o ccc.o -o cdcover $(CFLAGS)

ccc.o: ccc.cc texmaker.o stringlist.o bytevector.o 
	$(CC) -c ccc.cc $(CFLAGS)

texmaker.o: texmaker.h texmaker.cc stringlist.o bytevector.o
	$(CC) -c texmaker.cc $(CFLAGS)

headers: 
	text2h ccchelp <ccchelp.txt >ccchelp.h 
	text2h cccpara <cccpara.txt >cccpara.h
	text2h cccpara2 <cccpara2.txt >cccpara2.h
	text2h reshead <reshead.tex >reshead.h
	text2h resback <resback.tex >resback.h
	text2h resfront <resfront.tex >resfront.h

text2h: text2h.o bytevector.o stringlist.o 
	$(CC) $(STRINGLIB) text2h.o -o text2h $(CFLAGS)

text2h.o: text2h.cc
	$(CC) -c text2h.cc $(CFLAGS)

bytevector.o: bytevector.h bytevector.cc
	${CC} -c bytevector.cc $(CFLAGS)

stringlist.o: bytevector.o stringlist.h stringlist.cc
	$(CC) -c stringlist.cc $(CFLAGS)

clean:
	rm *.o cdcover

install: ccc
	cp cdcover $(INSTDIR)