diff options
Diffstat (limited to 'framework/Makefile_channel_server')
-rw-r--r-- | framework/Makefile_channel_server | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/framework/Makefile_channel_server b/framework/Makefile_channel_server index 286be2d..eabf440 100644 --- a/framework/Makefile_channel_server +++ b/framework/Makefile_channel_server @@ -32,7 +32,7 @@ OUTDIR = lib TARGET = $(OUTDIR)/libscserver.so SRCDIR = . -LD_FLAGS := $(LD_FLAGS) -ldl +LD_FLAGS := $(LD_FLAGS) -ldl -lpthread -ltzplatform-config-1.0 ifeq ($(TCS_CC), ) CC = gcc @@ -85,22 +85,13 @@ OBJECTS = $(OUTDIR)/IpcServer.o \ $(OUTDIR)/IpcServerError.o \ $(OUTDIR)/IpcThrdPool.o -MKDEP = mkdep -f .depend - $(OUTDIR)/%.o: $(SRCDIR)/%.c $(CC) $(CFLAGS) -o $(OUTDIR)/$*.o -c $(SRCDIR)/$*.c -all: $(OUTDIR) .depend $(TARGET) - -.depend: $(SOURCES) - $(MKDEP) $(CFLAGS) $(SOURCES) +all: $(OUTDIR) $(TARGET) $(TARGET): $(OBJECTS) - $(LD) -shared -Wl,-zdefs -o $(TARGET) $(OBJECTS) $(LD_FLAGS) - -# $(AR) -cr $(TARGET) $(OBJECTS) - -# $(STRIP) $(TARGET) + $(CC) -shared -Wl,-zdefs -o $(TARGET) $(OBJECTS) $(LD_FLAGS) $(OUTDIR): @mkdir $(OUTDIR) @@ -110,12 +101,9 @@ install: all cp ${TARGET} ${DESTDIR}/bin/ distclean: clean - @rm -f .depend -# @rm -rf $(OUTDIR) + @rm -rf $(OUTDIR) clean: @rm -f $(TARGET) @rm -f $(OBJECTS) *~ @rm -f *.bb *.bbg *.da *.gcov - --include .depend |