specify app lib dependencies in Makefiles (patch 1/3)
[mesa.git] / progs / beos / Makefile
1 # progs/beos/Makefile
2
3 TOP = ../..
4 include $(TOP)/configs/current
5
6 # Makefile for BeOS demos
7
8 # Written by Brian Paul
9 # This file is in the public domain.
10 #
11 # Modified by Philippe Houdoin
12
13 LDFLAGS += -soname=_APP_
14
15 LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
16
17 INCLUDES = -I. -I- -I../../include
18
19 default: demo sample GLInfo
20
21 clean:
22 rm -f demo sample GLInfo
23 rm -f *.o
24
25 demo: demo.o
26 $(LD) demo.o $(LDFLAGS) $(LIBS) -o $@
27
28 sample: sample.o
29 $(LD) sample.o $(LDFLAGS) $(LIBS) -o $@
30
31 GTLInfo: GLInfo.o
32 $(LD) GLInfo.o $(INCLUDES) $(LDFLAGS) $(LIBS) -o $@
33
34 .cpp.o:
35 $(CC) -c $< $(INCLUDES) $(CFLAGS) -o $@