-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.ria
83 lines (74 loc) · 2.52 KB
/
Makefile.ria
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
########################################################################
# MAKEFILE for Recipe Import Assist [RIA]
########################################################################
# Compiler settings
CC = gcc
#-----------------------------------------------------------------------
RM = rm
#-----------------------------------------------------------------------
LIBTOOLS = ../libtools
#-----------------------------------------------------------------------
CFLAGS = -DDEBUG -Wall -g -MMD
CFLAGS += -I. -Iinclude
CFLAGS += -I$(LIBTOOLS)/include/
#-----------------------------------------------------------------------
LFLAGS = -o
#-----------------------------------------------------------------------
LLIBRARY = $(LIBTOOLS)/libtools.a -lcrypto -lpthread -ldl
#-----------------------------------------------------------------------
########################################################################
# Makefile settings
APPNAME = ria
########################################################################
# Generate the file lists
#-----------------------------------------------------------------------
SRC = main.c
#
SRC += $(wildcard import/*.c)
#
SRC += $(wildcard email/*.c)
#
SRC += $(wildcard decode/*.c)
SRC += $(wildcard decode/*/*.c)
#
SRC += $(wildcard encode/*.c)
SRC += $(wildcard encode/*/*.c)
#
SRC += $(wildcard export/*.c)
#
SRC += $(wildcard monitor/*.c)
#
SRC += $(wildcard recipe/*.c)
#
SRC += $(wildcard rcb/*.c)
#
SRC += $(wildcard tcb/*.c)
#
SRC += $(wildcard xlate/*.c)
#-----------------------------------------------------------------------
OBJ = $(SRC:.c=.o)
#-----------------------------------------------------------------------
DEP = $(SRC:.c=.d)
#-----------------------------------------------------------------------
########################################################################
# Build dependant files, Compile everything, and build the library
all: $(APPNAME) Makefile
$(APPNAME): $(OBJ) ../tools/libtools.a
@echo "BUILD THE APPLICATION:"
$(CC) $(LFLAGS) $(APPNAME) $(OBJ) $(LLIBRARY)
-include $(DEP)
../tools/libtools.a:
cd $(LIBTOOLS) ; make all
########################################################################
# Cleans everything
cleanall: clean cleandep
########################################################################
# Cleans object and library file(s)
clean:
@echo "CLEAN:"
$(RM) -f $(OBJ) $(APPNAME)
########################################################################
# Cleans dependent file(s)
cleandep:
@echo "CLEANDEP:"
$(RM) -f $(DEP)