File: makefile

package info (click to toggle)
siridb-server 2.0.53-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,612 kB
  • sloc: ansic: 47,501; python: 6,263; sh: 254; makefile: 149
file content (86 lines) | stat: -rw-r--r-- 1,988 bytes parent folder | download | duplicates (3)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include src/base64/subdir.mk
-include src/xpath/subdir.mk
-include src/xmath/subdir.mk
-include src/timeit/subdir.mk
-include src/xstr/subdir.mk
-include src/vec/subdir.mk
-include src/siri/service/subdir.mk
-include src/siri/parser/subdir.mk
-include src/siri/net/subdir.mk
-include src/siri/help/subdir.mk
-include src/siri/grammar/subdir.mk
-include src/siri/file/subdir.mk
-include src/siri/db/subdir.mk
-include src/siri/cfg/subdir.mk
-include src/siri/args/subdir.mk
-include src/siri/subdir.mk
-include src/qpack/subdir.mk
-include src/qpjson/subdir.mk
-include src/procinfo/subdir.mk
-include src/owcrypt/subdir.mk
-include src/motd/subdir.mk
-include src/logger/subdir.mk
-include src/lock/subdir.mk
-include src/llist/subdir.mk
-include src/iso8601/subdir.mk
-include src/lib/subdir.mk
-include src/imap/subdir.mk
-include src/omap/subdir.mk
-include src/expr/subdir.mk
-include src/ctree/subdir.mk
-include src/cfgparser/subdir.mk
-include src/cexpr/subdir.mk
-include src/argparse/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

OS := $(shell uname)
ifeq ($(OS),Darwin)
CRYPT :=
UUID :=
INSTALL_PATH := /usr/local
else
CRYPT := -lcrypt
UUID := -luuid
INSTALL_PATH := /usr
endif

# Add inputs and outputs from these tool invocations to the build variables

# All Target
all: siridb-server

# Tool invocations
siridb-server: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GCC C Linker'
	gcc  -o "siridb-server" $(OBJS) $(USER_OBJS) $(LIBS) $(CRYPT) $(UUID) $(LDFLAGS)
	@echo 'Finished building target: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(EXECUTABLES)$(OBJS)$(C_DEPS) siridb-server
	-@echo ' '

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets

test:
	@cd ../test && ./test.sh