Changeset 9 in projects for visualisator/Makefile


Ignore:
Timestamp:
Aug 29, 2008, 1:24:03 AM (16 years ago)
Author:
sven
Message:
  • Recreated Makefiles in visualisator/ and puncher/
  • All /visualisator/ sources now compile with -Wall compiler flag
  • The basic /puncher/ sources compile with -Wall, too.
  • Added Readme for schriften/

Current development is now focussed at /puncher/frontend.gtk.c.

-- Sven @ workstation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • visualisator/Makefile

    r3 r9  
    11
    2 CAIROFLAGS=`pkg-config --cflags --libs cairo`
    3 GTKFLAGS=`pkg-config --cflags --libs gtk+-2.0`
    4 # GTK nutzt Cairo, daher brauchts nicht $(CAIROFLAGS) $(GTKFLAGS) in
    5 # einem gcc-Aufruf
     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
    68
    7 BACKEND=lochstreifen.c
     9all: cli gtk
    810
    9 all: cmd gtk
     11cli: cli.c lochstreifen.o
     12        gcc $(CFLAGS) $(CAIRO_LFLAGS) $(CAIRO_CFLAGS) -o cli lochstreifen.o cli.c
    1013
    11 cmd: create-image.c $(BACKEND)
    12         gcc -o binary $(CAIROFLAGS) create-image.c $(BACKEND)
    13        
    14 gtk: gtk.c $(BACKEND)
    15         gcc -o gtkprogram $(GTKFLAGS) gtkpapertape.c gtk.c $(BACKEND)
     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
    1620
    1721
     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 TracChangeset for help on using the changeset viewer.
© 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