File: Makefile

package info (click to toggle)
yaggo 1.5.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 316 kB
  • sloc: ruby: 2,943; sh: 94; cpp: 39; makefile: 34
file content (21 lines) | stat: -rw-r--r-- 483 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CXX = g++
CPPFLAGS += -I. -Wall -Werror
CXXFLAGS += -O2
YAGGO = ../bin/yaggo
RY = ruby -I../lib $(YAGGO)

all: count

count: count.o
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $< $(LDFLAGS)
count_cmdline.hpp _count: count_cmdline.yaggo $(YAGGO)
	$(RY) --debug --zc _count $<
count.o: count.cpp count_cmdline.hpp

# test_errno.hpp: test_errno.yaggo $(YAGGO)
# 	$(RY) --debug $<
# test_errno: test_errno.o
# test_errno.o: test_errno.cc test_errno.hpp

clean:
	rm -f *.o count *_cmdline.hpp