-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (33 loc) · 1.56 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Makefile
#
# This file is part of PlotterController project.
# https://github.com/berk76/plottercontroller
#
# PlotterController is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version. <http://www.gnu.org/licenses/>
#
# Written by Jaroslav Beran <jaroslav.beran@gmail.com>, on 24.1.2014
CFLAGS = -O2 -Wall -c -o $@
objects = src/graph.o src/printer.o src/par_port.o src/gpio_port.o src/gpio_io.o src/text.o src/hpgl.o
all: plotter_controller prn_hpgl fit_hpgl
plotter_controller: src/main.o ${objects}
$(CC) -Wall -o $@ src/main.o ${objects} -lm
cp var/font1.tfnt ./font1.fnt
prn_hpgl: src/prn_hpgl.o ${objects}
$(CC) -Wall -o $@ src/prn_hpgl.o ${objects} -lm
fit_hpgl: src/fit_hpgl.o
$(CC) -Wall -o $@ src/fit_hpgl.o -lm
prn_hpgl.o: src/prn_hpgl.c src/main.h src/printer.h src/hpgl.h
main.o: src/main.c src/main.h src/graph.h src/printer.h src/text.h src/hpgl.h
printer.o: src/printer.c src/printer.h src/par_port.h src/gpio_port.h
graph.o: src/graph.c src/graph.h src/printer.h
par_port.o: src/par_port.c src/par_port.h
gpio_port.o: src/gpio_port.c src/gpio_port.h src/gpio_io.h
gpio_io.o: src/gpio_io.c src/gpio_io.h
text.o: src/text.c src/text.h src/graph.h src/printer.h
hpgl.o: src/hpgl.c src/hpgl.h src/graph.h src/printer.h
fit_hpgl.o: src/fit_hpgl.c src/main.h
clean:
rm -f src/*.o src/*.bak plotter_controller prn_hpgl fit_hpgl *.exe *.bak *.fnt