-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 723 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 723 Bytes
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
CXX=g++
CXXFLAGS=-W -Wall -g -fmessage-length=0 -std=gnu++11
OPTIMIZE=-O2 -fomit-frame-pointer
DEBUG=-O0 -lmcheck
all: marlinfeed marlinfeed.1
test: unit-tests
./unit-tests
%: src/%.cpp src/marlinbuf.h src/gcode.h src/file.h src/fifo.h src/dirscanner.h
$(CXX) $(CXXFLAGS) $(OPTIMIZE) -o $@ $<
unit-tests: src/unit-tests.cpp src/marlinbuf.h src/gcode.h src/file.h src/fifo.h src/dirscanner.h
$(CXX) $(CXXFLAGS) $(DEBUG) -o $@ $<
mocklin: src/mocklin.cpp src/marlinbuf.h src/gcode.h src/file.h
$(CXX) $(CXXFLAGS) $(DEBUG) -o $@ $<
marlinfeed.1: README.md
go-md2man -in=$< -out=$@
.PHONY: debian
debian:
dpkg-buildpackage -rfakeroot -sa -uc -us
clean:
rm -f marlinfeed unit-tests mocklin marlinfeed.1
rm -f *~