source: projects/paper-tape/userspace-driver/old implementation/Makefile @ 29

Last change on this file since 29 was 29, checked in by sven, 11 years ago

I think that was the some kind of

  • Property svn:executable set to *
File size: 838 bytes
Line 
1
2CFLAGS       = -Wall
3CAIRO_CFLAGS = `pkg-config --cflags cairo`
4GTK_CFLAGS   = `pkg-config --cflags gtk+-2.0`
5CAIRO_LFLAGS = `pkg-config --libs cairo`
6GTK_LFLAGS   = `pkg-config --libs gtk+-2.0`
7# GTK uses Cairo, therefore $(GTK_FLAGS) doesn't need $(CAIRO_FLAGS), too
8
9all: cli gtk
10
11cli: cli.c lochstreifen.o
12        gcc $(CFLAGS) $(CAIRO_LFLAGS) $(CAIRO_CFLAGS) -o cli lochstreifen.o cli.c
13
14# cli was formerly:
15#cmd: create-image.c $(BACKEND)
16#       gcc -o binary $(CAIROFLAGS) create-image.c $(BACKEND)
17
18gtk: gtk.c gtkpapertape.o
19        gcc $(CFLAGS) $(GTK_LFLAGS) $(GTK_CFLAGS) -o gtk gtkpapertape.o lochstreifen.o gtk.c
20
21
22gtkpapertape.o: lochstreifen.o gtkpapertape.c gtkpapertape.h
23        gcc $(CFLAGS) $(GTK_CFLAGS) -c gtkpapertape.c
24
25lochstreifen.o: lochstreifen.c lochstreifen.h
26        gcc $(CFLAGS) $(CAIRO_CFLAGS) -c lochstreifen.c
27
28clean:
29        rm *.o gtk cli
Note: See TracBrowser for help on using the repository browser.
© 2008 - 2013 technikum29 • 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