Changeset 9 in projects for puncher/Makefile


Ignore:
Timestamp:
Aug 29, 2008, 1:24:03 AM (11 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
  • puncher/Makefile

    r5 r9  
    1 GTKFLAGS=`pkg-config --cflags --libs gtk+-2.0`
    2 VISUALISATION=../visualisator
    3 BACKEND=$(VISUALISATION)/lochstreifen.c $(VISUALISATION)/gtkpapertape.c
    41
    5 all: gtk
     2CFLAGS = -Wall
    63
    7 gtk: gtk-frontend.c $(BACKEND)
    8         gcc -o gtkprogram $(GTKFLAGS) gtk-frontend.c $(BACKEND)
     4# Visualisation files
     5VISUALISATION_DIR = ../visualisator
     6VISUALISATION_FILES = $(VISUALISATION_DIR)/gtkpapertape.o $(VISUALISATION_DIR)/lochstreifen.o
    97
    10 # WINDOWS: mingw braucht dort ERST cflags, dann C source, dann
    11 # LINKER flags, vgl.
    12 # http://www.math.nagoya-u.ac.jp/~garrigue/soft/olabl/lablgtk-list/old/413.txt
    13 windows: gtk-frontend.c $(BACKEND)
    14         gcc `pkg-config --cflags gtk+-2.0` -o gtkprogram gtk-frontend.c $(BACKEND) `pkg-config --libs gtk+-2.0`
     8GTK_CFLAGS = `pkg-config --cflags gtk+-2.0`
     9GTK_LFLAGS = `pkg-config --libs gtk+-2.0`
    1510
    16 # temp mal dazu
    17 linux-driver:
    18         gcc -o setoff-strobe setoff-strobe.c
    19         gcc -o puncher puncher.c -lm
     11# complete binaries:
     12all: cli gtk
     13
     14cli: frontend.cli.o backend.dummy.o
     15        gcc $(GTK_LFLAGS) -o $@ $^
     16
     17gtk: frontend.gtk.o backend.dummy.o
     18        gcc $(GTK_LFLAGS) -o $@ $^ $(VISUALISATION_FILES)
     19
     20# frontends:
     21frontend.cli.o: frontend.cli.c backend.h
     22        gcc $(CFLAGS) -c frontend.cli.c
     23
     24frontend.gtk.o: frontend.gtk.c backend.h visualisator
     25# zunaechst kein -Wall (CFLAGS) waehrend entwicklung:
     26        gcc $(GTK_CFLAGS) -c frontend.gtk.c
     27
     28.PHONY: visualisator
     29visualisator:
     30        $(MAKE) -C $(VISUALISATION_DIR) gtkpapertape.o
     31
     32# backends:
     33backend.dummy.o: backend.dummy.c backend.h
     34        gcc $(CFLAGS) -c backend.dummy.c
     35
     36backend.linux.o: backend.linux.c backend.h
     37        gcc $(CFLAGS) -c backend.linux.c
     38
     39
     40# clean
     41clean:
     42        rm *.o cli gtk
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