修改Makefile文件令其在编译test时依赖于test.c文件。

This commit is contained in:
钟安
2015-12-03 09:26:56 +08:00
parent a05242e166
commit 02a6ab32e2

View File

@@ -12,7 +12,7 @@ sys_nicmonitor:mnic.o read_netcard.o send_alarm.o
$(CC) -lman -ldotconf -lpthread -o $@ $^
libnic_shm.so:nicinfo_shm.c
$(CC) -fpic -shared -o $@ $^
test:
test:test.c
gcc -o test test.c -lnic_shm -L=./ -lpthread
runtest:
LD_LIBRARY_PATH=./ ./test bond0 5000 &