source: projects/puncher/Makefile @ 10

Last change on this file since 10 was 10, checked in by sven, 16 years ago

I began to build the Windows Punching Backend, using a WINNT User mode dll to perform CPU register read/write operations from user mode. Additionally wrote documentation.

-- Sven @ winXp workstation at Susanne

File size: 1.0 KB
Line 
1#
2# this Makefile is currently (only) Linux specific.
3# Run  ` make -fMakefile.win ` at Windows.
4#
5
6
7CFLAGS = -Wall
8
9# Visualisation files
10VISUALISATION_DIR = ../visualisator
11VISUALISATION_FILES = $(VISUALISATION_DIR)/gtkpapertape.o $(VISUALISATION_DIR)/lochstreifen.o
12
13GTK_CFLAGS = `pkg-config --cflags gtk+-2.0`
14GTK_LFLAGS = `pkg-config --libs gtk+-2.0`
15
16# complete binaries:
17all: cli gtk
18
19cli: frontend.cli.o backend.dummy.o
20        gcc $(GTK_LFLAGS) -o $@ $^
21
22gtk: frontend.gtk.o backend.dummy.o
23        gcc $(GTK_LFLAGS) -o $@ $^ $(VISUALISATION_FILES)
24
25# frontends:
26frontend.cli.o: frontend.cli.c backend.h
27        gcc $(CFLAGS) -c frontend.cli.c
28
29frontend.gtk.o: frontend.gtk.c backend.h visualisator
30# zunaechst kein -Wall (CFLAGS) waehrend entwicklung:
31        gcc $(GTK_CFLAGS) -c frontend.gtk.c
32
33.PHONY: visualisator
34visualisator:
35        $(MAKE) -C $(VISUALISATION_DIR) gtkpapertape.o
36
37# backends:
38backend.dummy.o: backend.dummy.c backend.h
39        gcc $(CFLAGS) -c backend.dummy.c
40
41backend.linux.o: backend.linux.c backend.h
42        gcc $(CFLAGS) -c backend.linux.c
43
44
45# clean
46clean:
47        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