source: projects/puncher/Makefile @ 9

Last change on this file since 9 was 9, checked in by sven, 11 years ago
  • 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 size: 962 bytes
Line 
1
2CFLAGS = -Wall
3
4# Visualisation files
5VISUALISATION_DIR = ../visualisator
6VISUALISATION_FILES = $(VISUALISATION_DIR)/gtkpapertape.o $(VISUALISATION_DIR)/lochstreifen.o
7
8GTK_CFLAGS = `pkg-config --cflags gtk+-2.0`
9GTK_LFLAGS = `pkg-config --libs gtk+-2.0`
10
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 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