root/paper-tape-project/trunk/visualisator/Makefile

Revision 20, 1.2 kB (checked in by sven, 4 years ago)

Cleaned up (No object and output binaries in the SVN). Furthermore it compiles
now ("make all"). There are still bugs. See /TODO.txt (coming soon)

-- Sven @ workstation

Line 
1CAIRO_CFLAGS=`pkg-config --cflags cairo`
2GTKMM_CFLAGS=`pkg-config --cflags gtkmm-2.4`
3CAIRO_LIBS=`pkg-config --libs cairo`
4GTKMM_LIBS=`pkg-config --libs gtkmm-2.4`
5CPP=g++
6CFLAGS=-Wall
7
8gtk: gtk.cc gtkpapertape.o gtkpapertapeview.o gtkpapertapefile.o gtkpapertapecolor.o gtkpapertapezoom.o lochstreifen.o gtkpapertapeexporter.o
9        $(CPP) $(GTKMM_CFLAGS) $^ -o $@ $(GTKMM_LIBS)
10
11cli: cli.c lochstreifen.o
12        $(CC) $(CAIRO_CFLAGS) $^ $(CAIRO_LIBS) -o $@
13
14gtkpapertape.o: gtkpapertape.cc gtkpapertape.h
15        $(CPP) $(CFLAGS) $(GTKMM_CFLAGS) -c gtkpapertape.cc
16
17gtkpapertapeview.o: gtkpapertapeview.cc gtkpapertapeview.h
18        $(CPP) $(CFLAGS) $(GTKMM_CFLAGS) -c gtkpapertapeview.cc
19
20gtkpapertapefile.o: gtkpapertapefile.cc gtkpapertapefile.h
21        $(CPP) $(CFLAGS) $(GTKMM_CFLAGS) -c gtkpapertapefile.cc
22       
23gtkpapertapeexporter.o: gtkpapertapeexporter.cc gtkpapertapeexporter.h
24        $(CPP) $(CFLAGS) $(GTKMM_CFLAGS) -c gtkpapertapeexporter.cc
25
26gtkpapertapecolor.o: gtkpapertapecolor.cc gtkpapertapecolor.h
27        $(CPP) $(CFLAGS) $(GTKMM_CFLAGS) -c gtkpapertapecolor.cc
28
29gtkpapertapezoom.o: gtkpapertapezoom.cc gtkpapertapezoom.h
30        $(CPP) $(CFLAGS) $(GTKMM_CFLAGS) -c gtkpapertapezoom.cc
31
32lochstreifen.o: lochstreifen.c lochstreifen.h
33        $(CC) $(CFLAGS) $(CAIRO_CFLAGS) -c lochstreifen.c
34
35clean:
36        rm -v *.o cli gtk
Note: See TracBrowser for help on using the browser.
© 2008 - 2010 Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License