build.mk 702 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10

COMMAND_TARGETS += $(LIBDIR)/libcommand.la

COMMAND_TARGETS += $(DIR)/command_list


ARCHSRCS := $(DIR)/command.c $(DIR)/command_tcp.c
ARCHOBJS := $(ARCHSRCS:.c=.lo)


11
$(ARCHOBJS): CFLAGS += -Wall -O3 -fPIC
Jeroen Vreeken's avatar
Jeroen Vreeken committed
12
$(LIBDIR)/libcommand.la: libutils.la liblog.la
13
$(LIBDIR)/libcommand.la_LDFLAGS += -lutils -lm -llog
14
15
16
17
18
19
$(LIBDIR)/libcommand.la: $(ARCHOBJS)
	$(LIB_LINK)

COMMAND_LIST_SRCS := $(DIR)/command_list.c
COMMAND_LIST_OBJS := $(COMMAND_LIST_SRCS:.c=.o)

Jeroen Vreeken's avatar
Jeroen Vreeken committed
20
$(DIR)/command_list: libcommand.la
21
$(DIR)/command_list_LDFLAGS += -lcommand
22
23
24
25
26
$(DIR)/command_list: $(COMMAND_LIST_OBJS)

SRCS += $(ARCHSRCS) $(COMMAND_LIST_SRCS)
TARGETS += $(COMMAND_TARGETS)
CLEAN += $(COMMAND_TARGETS) $(ARCHOBJS) $(COMMAND_LIST_OBJS)