File: Makefile.in

package info (click to toggle)
fookb 2.21-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 360 kB
  • ctags: 49
  • sloc: ansic: 567; makefile: 85; sh: 44
file content (65 lines) | stat: -rw-r--r-- 1,729 bytes parent folder | download
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
BIN_PATH=@prefix@/bin
SHARE_PATH=@prefix@/share/fookb
MAN_PATH=@prefix@/man/man1

srcdir = ..

# FLAGS=-Wall -g -DDEBUG @DEFS@
FLAGS=-Wall @DEFS@

GCC=@CC@

INCLUDEDIR=@X_CFLAGS@

LIBDIR=@X_LIBS@

LIBS=@LIBS@

# DEBUG
# DLIBS=-lefence
DLIBS=



fookb: fookb.o params.o images.o sound.o opts.o globals.o
	${GCC} ${LIBDIR} ${DLIBS} ${LIBS} -o fookb fookb.o params.o images.o sound.o opts.o globals.o

fookb.o: $(srcdir)/fookb.c $(srcdir)/fookb.h $(srcdir)/params.h
	${GCC} -c ${FLAGS} ${INCLUDEDIR} -I$(srcdir) $(srcdir)/fookb.c

params.o: $(srcdir)/params.c $(srcdir)/params.h
	${GCC} -c ${FLAGS} ${INCLUDEDIR} -I$(srcdir) $(srcdir)/params.c

images.o: $(srcdir)/images.c $(srcdir)/images.h
	${GCC} -c ${FLAGS} ${INCLUDEDIR} -I$(srcdir) $(srcdir)/images.c

sound.o: $(srcdir)/sound.h $(srcdir)/sound.c $(srcdir)/params.h
	${GCC} -c ${FLAGS} ${INCLUDEDIR} -I$(srcdir) $(srcdir)/sound.c

opts.o: $(srcdir)/opts.h $(srcdir)/fookb.h $(srcdir)/opts.c
	${GCC} -c ${FLAGS} ${INCLUDEDIR} -I$(srcdir) $(srcdir)/opts.c

globals.o: $(srcdir)/globals.c
	${GCC} -c ${FLAGS} ${INCLUDEDIR} -I$(srcdir) $(srcdir)/globals.c
	

clean:
	rm -f fookb fookb.o params.o images.o sound.o opts.o globals.o

superclean: clean
	rm -f Makefile config.*

install: fookb
	# mkdir -p ${BIN_PATH}
	#mkdir -p ${SHARE_PATH}
	#mkdir -p ${MAN_PATH}
	#cp fookb ${BIN_PATH}
	cp $(srcdir)/1.xpm ${DESTDIR}${SHARE_PATH}
	cp $(srcdir)/2.xpm ${DESTDIR}${SHARE_PATH}
	cp $(srcdir)/3.xpm ${DESTDIR}${SHARE_PATH}
	cp $(srcdir)/4.xpm ${DESTDIR}${SHARE_PATH}
	cp $(srcdir)/rus.xpm ${DESTDIR}${SHARE_PATH}
	cp $(srcdir)/lat.xpm ${DESTDIR}${SHARE_PATH}
	cp $(srcdir)/boom.xpm ${DESTDIR}${SHARE_PATH}
	cp $(srcdir)/beep_spring.au ${DESTDIR}${SHARE_PATH}
	#cp fookb.1x ${MAN_PATH}