-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.orig
72 lines (63 loc) · 1.71 KB
/
Makefile.orig
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
# Salad Makefile
# Compiler options
CC = gcc
INC = -Iinclude
CFLAGS = $(INC) -ansi -fPIC -g -pedantic -pipe -O2 -Wall
# Linker options
LIBS =
LINK = gcc
LDFLAGS = -shared
# Files
HEADERS = include/salad/config.h \
include/salad/list.h \
include/salad/log.h \
include/salad/map.h \
include/salad/memory.h \
include/salad/network.h \
include/salad/queue.h \
include/salad/search.h \
include/salad/sort.h \
include/salad/stack.h \
include/salad/string.h \
include/salad/time.h \
include/salad/tree.h \
include/salad/types.h \
include/salad/vector.h
SOURCES = src/list.c \
src/log.c \
src/map.c \
src/memory.c \
src/network.c \
src/queue.c \
src/search.c \
src/sort.c \
src/stack.c \
src/string.c \
src/time.c \
src/tree.c \
src/vector.c
OBJECTS = src/list.o \
src/log.o \
src/map.o \
src/memory.o \
src/network.o \
src/queue.o \
src/search.o \
src/sort.o \
src/stack.o \
src/string.o \
src/time.o \
src/tree.o \
src/vector.o
TARGET_LIB1 = libsalad.so
TARGET_LIB2 = libsalad_daemon.so
# Build rules
all: $(TARGET_LIB1) $(TARGET_LIB2) subsystem
$(TARGET_LIB1): $(OBJECTS)
$(LINK) $(LDFLAGS) -o $(TARGET_LIB1) $(OBJECTS) $(LIBS)
$(TARGET_LIB2): src/daemon.o
$(LINK) $(LDFLAGS) -o $(TARGET_LIB2) src/daemon.o $(LIBS)
subsystem:
cd samples && $(MAKE)
clean:
rm -f $(OBJECTS) $(TARGET_LIB1) $(TARGET_LIB2) src/daemon.o && cd samples && $(MAKE) clean