File: Makefile

package info (click to toggle)
egoboo 2.22-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,640 kB
  • ctags: 2,570
  • sloc: ansic: 23,989; makefile: 94; sh: 83
file content (41 lines) | stat: -rw-r--r-- 779 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
SRC	= camera.c	\
	  char.c	\
	  enchant.c	\
	  game.c	\
	  graphic.c	\
	  input.c	\
	  menu.c	\
	  module.c	\
	  network.c	\
	  particle.c	\
	  passage.c	\
	  script.c	\
	  sound.c	\
	  lin-file.c	\
	  gltexture.c	\
	  mathstuff.c	\
	  graphicfan.c	\
	  graphicmad.c	\
	  graphicprt.c	\
	  configfile.c
INCL	= egoboo.h

OBJS    = $(SRC:.c=.o)
NAME	= egoboo
FLAGS	= -D_LINUX -ffast-math -funroll-loops -O3
LIBS	= `sdl-config --libs` -lGL -lGLU
INCDIR	= `sdl-config --cflags` -I/usr/X11/include
LIBDIR	= -L/usr/X11R6/lib -L/usr/lib
CC	= gcc

all: $(NAME)

$(NAME): $(OBJS) $(SRC) $(INCL)
	$(CC) $(OBJS) $(FLAGS) $(INCDIR) $(LIBDIR) $(LIBS) -o $(NAME)


.c.o: $< $(INCL)
	$(CC) $< $(FLAGS) $(INCDIR) -c 

clean:
	rm -f $(NAME); rm -f *.o *~