summaryrefslogtreecommitdiff
path: root/progs/beos/Makefile
blob: 6fa6d8fd9b90bbefa03f91038ef13dea8279d3e8 (plain)
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
# $Id: Makefile,v 1.2 1999/09/17 00:55:21 brianp Exp $

# Makefile for BeOS demos

# Written by Brian Paul
# This file is in the public domain.



CC = g++

# Use Mesa:
CFLAGS = -I../include -c -g
LFLAGS = -L../lib  -Xlinker -rpath ../lib -lbe -lGL

# Use BeOS OpenGL:
#CFLAGS = -I/boot/develop/headers/be/opengl -c -g
#LFLAGS = -L../lib  -Xlinker -rpath ../lib -lbe -lGL


PROGRAMS = demo sample

default: $(PROGRAMS)


clean:
	rm -f demo sample
	rm -f *.o


demo: demo.o
	$(CC) demo.o $(LFLAGS) -o $@

demo.o: demo.cpp
	$(CC) $(CFLAGS) demo.cpp


sample: sample.o
	$(CC) sample.o $(LFLAGS) -o $@

sample.o: sample.cpp
	$(CC) $(CFLAGS) sample.cpp