File: Makefile.old

package info (click to toggle)
zatacka 0.1.8-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,408 kB
  • sloc: sh: 787; cpp: 722; ansic: 577; makefile: 49
file content (47 lines) | stat: -rw-r--r-- 1,030 bytes parent folder | download | duplicates (4)
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
#Zatacka Makefile
#Copyright by Mage 2006
rm=/bin/rm -f
ln=/bin/ln -s
CC= g++ 
DEFS=  
PROGNAME= zatacka
INCLUDES=  -I. 
LIBS= `sdl-config --libs` -lSDL_image -lSDL_ttf
BIN=/usr/games
#DEST=/usr/local/games/zatacka



DEFINES= $(INCLUDES) $(DEFS) -DSYS_UNIX=1
CFLAGS= -g $(DEFINES) `sdl-config --cflags`

SRCS = main.cpp fx.cpp SDL_prim.c 

OBJS = main.o fx.o SDL_prim.o 

.c.o:
	$(rm) $@
	$(CC) $(CFLAGS) -c $*.c

all: $(PROGNAME)

$(PROGNAME) : $(OBJS)
	$(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)

clean:
	$(rm) $(OBJS) $(PROGNAME) core *~

install: all 
	-if  ! [ -d $(DEST) ]; then \
	  mkdir $(DEST); fi
	-if ! [ -d $(DEST)/maps ] ; then \
	  mkdir $(DEST)/maps; fi
	-cp $(PROGNAME) $(DESTDIR)/usr/games/;\
 	cp main_screen.jpg $(DESTDIR)/usr/share/games/zatacka;\
	cp barrier.jpg $(DESTDIR)/usr/share/games/zatacka;\
	cp maps/map1.jpg $(DESTDIR)/usr/share/games/zatacka/maps/ 
#	cp font.ttf $(DEST);\
#	#-if [ -e $(BIN)/$(PROGNAME) ] ; then \ 
#	 $(rm) $(BIN)/$(PROGNAME)
#	$(ln) $(DEST)/$(PROGNAME) $(BIN)/$(PROGNAME)