Browse Source

link again libhiredis and include header directory

git.mgm/mediaproxy-ng/2.0
Richard Fuchs 15 years ago
parent
commit
2f183d8ce3
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      daemon/Makefile

+ 6
- 2
daemon/Makefile View File

@ -1,9 +1,13 @@
LIBREDISDIR= libhiredis-v0.10.0-3-gdf203bc
CC= gcc
CFLAGS= -g -Wall `pkg-config --cflags glib-2.0` `pcre-config --cflags`
CFLAGS+= -I/lib/modules/`uname -r`/build/include/ -I../kernel-module/
CFLAGS+= -D_GNU_SOURCE
#CFLAGS+= -O2
CFLAGS+= -I$(LIBREDISDIR)
LDFLAGS= `pkg-config --libs glib-2.0` `pcre-config --libs`
LDFLAGS+= -L$(LIBREDISDIR) -lhiredis
SRCS= main.c kernel.c poller.c aux.c control.c streambuf.c call.c control_udp.c
@ -13,7 +17,7 @@ OBJS= $(SRCS:.c=.o)
.PHONY: all dep clean tests
all:
make -C libhiredis-v0.10.0-3-gdf203bc
make -C $(LIBREDISDIR)
make mediaproxy-ng
tests:
@ -23,7 +27,7 @@ dep: .depend
clean:
rm -f $(OBJS) mediaproxy-ng aux-test poller-test aux-test.o poller-test.o .depend build_time.h core
make -C libhiredis-v0.10.0-3-gdf203bc clean
make -C $(LIBREDISDIR) clean
.depend: $(SRCS) Makefile build_time.h
$(CC) $(CFLAGS) -M $(SRCS) | sed -e 's/:/ .depend:/' > .depend


Loading…
Cancel
Save