Skip to content
Snippets Groups Projects
Commit 3cf7ac9a authored by Graziano Scalamera's avatar Graziano Scalamera
Browse files

Add Makefile

parent a114ff98
No related branches found
No related tags found
No related merge requests found
Makefile 0 → 100644
#
# Rnm Makefile
#
TARGET_USER = rnm-dpdk-watch
FILE_USER = rnm_dpdk_watch
ifeq ($(PREFIX),)
PREFIX := /usr
endif
default: $(TARGET_USER)
$(TARGET_USER): bin obj obj/$(FILE_USER).o
$(CC) obj/$(FILE_USER).o $(LDFLAGS) -lrt -lrnm -pthread -o bin/$(TARGET_USER)
obj/$(FILE_USER).o: src/$(FILE_USER).c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -fr obj core bin *~
rm -rf .tmp_versions
bin obj:
@mkdir $@
install:
install -D -m 755 bin/$(TARGET_USER) -t $(PREFIX)/bin
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include <sys/time.h> #include <sys/time.h>
#include "rnm.h" #include "rnm.h"
#include "rnm_mq.h"
#include "rnm_shm.h" #include "rnm_shm.h"
/* structure to mantain internal device driver variables */ /* structure to mantain internal device driver variables */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment