Makefile
changeset 6 240ae8482d64
parent 2 a834f0559939
child 8 be88e543c8ff
equal deleted inserted replaced
5:a09a0797f6f0 6:240ae8482d64
    28 BIN_PATHS = $(addprefix bin/,$(BIN_NAMES))
    28 BIN_PATHS = $(addprefix bin/,$(BIN_NAMES))
    29 
    29 
    30 # modules
    30 # modules
    31 module_objs = $(patsubst src/%.c,obj/%.o,$(wildcard src/$(1)/*.c))
    31 module_objs = $(patsubst src/%.c,obj/%.o,$(wildcard src/$(1)/*.c))
    32 
    32 
       
    33 CORE_OBJS = obj/error.o
    33 SOCK_OBJS = obj/sock.o obj/sock_tcp.o
    34 SOCK_OBJS = obj/sock.o obj/sock_tcp.o
    34 SOCK_GNUTLS_OBJS = obj/sock_gnutls.o
    35 SOCK_GNUTLS_OBJS = obj/sock_gnutls.o
    35 
    36 
    36 # XXX: not yet there
    37 # XXX: not yet there
    37 #CORE_OBJS = obj/lib/log.o obj/lib/signals.o
    38 #CORE_OBJS = obj/lib/log.o obj/lib/signals.o
    38 
    39 
    39 # first target
    40 # first target
    40 all: ${BIN_PATHS}
    41 all: ${BIN_PATHS}
    41 
    42 
    42 # binaries
    43 # binaries
    43 bin/nexus: ${SOCK_OBJS} ${SOCK_GNUTLS_OBJS}
    44 bin/nexus: ${CORE_OBJS} ${SOCK_OBJS} ${SOCK_GNUTLS_OBJS}
    44 
    45 
    45 # computed
    46 # computed
    46 CFLAGS = ${MODE_CFLAGS} ${FIXED_CFLAGS} ${LIBEVENT_CFLAGS} ${GNUTLS_CFLAGS}
    47 CFLAGS = ${MODE_CFLAGS} ${FIXED_CFLAGS} ${LIBEVENT_CFLAGS} ${GNUTLS_CFLAGS}
    47 LDFLAGS = ${LIBEVENT_LDFLAGS} ${GNUTLS_LDFLAGS}
    48 LDFLAGS = ${LIBEVENT_LDFLAGS} ${GNUTLS_LDFLAGS}
    48 
    49