summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: dcb71d6cd5ea058e744ab1fe43e0ec8e03f96449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CC=gcc
CPP=c++
CFLAGS=-g -I/usr/X11R6/include
CXXFLAGS=-g -I/usr/X11R6/include -I/usr/local/include -fno-stack-protector 
LDFLAGS=-g -fno-stack-protector

OBJECTS=gipfel.o GipfelWidget.o Hill.o Panorama.o

#%.o: %.c
#	$(CC) -c $(CFLAGS) $*.c

%.o: %.cxx
	$(CPP) -c $(CXXFLAGS) $*.cxx

gipfel: $(OBJECTS)
	$(CC) -fno-stack-protector -o gipfel $(OBJECTS) -L/usr/X11R6/lib -L/usr/local/lib -lm -lccm -lfltk -lfltk_images

flmountains: $(flmountains.o)
	$(CPP) -o flmountains flmountains.o -L/usr/X11R6/lib -lm -lfltk -lfltk_images

clean:
	rm -f gipfel $(OBJECTS)