1 CXX=g++
2 CXXFLAGS += -std=c++11 -Wall
3
4 APP=lpt-signal-generator
5 PROGNAME=$(APP)
6 SRC=lpt.cpp
7
8 ALL: $(PROGNAME)
9
10 $(PROGNAME): $(SRC)
11 $(CXX) $(CXXFLAGS) -o $(PROGNAME) $(SRC)
12
13 clean:
14 rm -f $(PROGNAME)
15
16 run: $(PROGNAME)
17 chrt 1 ./$(PROGNAME)
18