File: Makefile

package info (click to toggle)
swirc 3.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,988 kB
  • sloc: ansic: 18,321; cpp: 17,795; sh: 968; python: 254; makefile: 104; javascript: 20
file content (51 lines) | stat: -rw-r--r-- 963 bytes parent folder | download
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
42
43
44
45
46
47
48
49
50
51
include options.mk

CPPFLAGS += -Isrc/include

PREFIX ?= /usr/local

all: main

include src/commands/build.mk
include src/events/build.mk
include src/build.mk

main: $(TGTS)

.c.o:
	$(E) "  CC      " $@
	$(Q) $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<

.cpp.o:
	$(E) "  CXX     " $@
	$(Q) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<

include tests/recompile.mk

$(OBJS): $(SRC_DIR)include/swircpaths.h

check: $(SRC_DIR)include/swircpaths.h $(OBJS)
	$(RM) $(RECOMPILE)
	$(Q) strip --strip-symbol=main $(SRC_DIR)main.o
	$(MAKE) -Ctests

include maketargets/install.mk
include maketargets/tidy.mk

clean:
	$(E) "  CLEAN"
	$(RM) $(COMMANDS_DIR)*.c.smatch
	$(RM) $(EVENTS_DIR)*.c.smatch
	$(RM) $(SRC_DIR)*.c.smatch
	$(RM) $(SRC_DIR)include/swircpaths.h
	$(RM) $(OBJS)
	$(RM) $(TGTS)
	$(RM) -R cov-int
	$(RM) -R swirc.analyze
	$(RM) PVS-Studio.log
	$(RM) report.tasks
	$(RM) strace_out
	$(RM) swirc.html
	$(RM) swirc.static.html
	$(MAKE) -Cpo clean
	$(MAKE) -Ctests clean