-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.ubuntu
22 lines (21 loc) · 997 Bytes
/
Makefile.ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# by yuanren 2022/09/08
#
NY: clean all
CC=gcc
CFLAGS=-Werror -Wall -g -D_GNU_SOURCE -D__USE_XOPEN -D_MIME_TYPE_
BUILDDIR=/root/dup-distribute/BUILD
BIN_SERVER=dd-server
BIN_CLIENT=dd-client
BIN_SENDER=dd-sender
all:$(BIN_SERVER) $(BIN_CLIENT) $(BIN_SENDER)
%.o:%.c
$(CC) $(CFLAGS) -I$(BUILDDIR)/include -c $< -o $@
dd-server:server.o util.o log.o ConfigFile.o jinzhiConvert.o recordData.o playback.o
$(CC) $(CFLAGS) $^ -Wl,--rpath=$(BUILDDIR)/lib -Wl,--dynamic-linker=$(BUILDDIR)/lib/ld-linux-x86-64.so.2 -pthread -o $@
dd-sender:sender.o util.o log.o ConfigFile.o jinzhiConvert.o recordData.o playback.o
$(CC) $(CFLAGS) $^ -Wl,--rpath=$(BUILDDIR)/lib -Wl,--dynamic-linker=$(BUILDDIR)/lib/ld-linux-x86-64.so.2 -pthread -o $@
dd-client:client.o util.o log.o ConfigFile.o jinzhiConvert.o recordData.o playback.o
$(CC) $(CFLAGS) $^ -Wl,--rpath=$(BUILDDIR)/lib -Wl,--dynamic-linker=$(BUILDDIR)/lib/ld-linux-x86-64.so.2 -pthread -o $@
clean:
rm -f *.o $(BIN_SERVER) $(BIN_CLIENT) $(BIN_SENDER)