summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index adcb519..5f7ab8d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,5 +1,6 @@
CC=gcc
-CFLAGS=-g
+CPP=c++
+CFLAGS=-g -I/usr/X11R6/include
LDFLAGS=-g
OBJECTS=panorama.o
@@ -7,8 +8,14 @@ OBJECTS=panorama.o
%.o: %.c
$(CC) -c $(CFLAGS) $*.c
+%.o: %.cxx
+ $(CPP) -c $(CFLAGS) $*.c
+
panorama: $(OBJECTS)
$(CC) -o panorama $(OBJECTS) -lm
+flmountains: $(flmountains.o)
+ $(CPP) -o flmountains flmountains.o -L/usr/X11R6/lib -lm -lfltk -lfltk_images
+
clean:
rm -f panorama $(OBJECTS)