Add cmd arg parser.

This commit is contained in:
Taeho Oh
2016-01-04 21:19:58 +09:00
committed by Taeho Oh
parent 560f3314dc
commit e2927aac55
2 changed files with 74 additions and 4 deletions
+2
View File
@@ -1,4 +1,5 @@
DEBUG = y
OMVS_VERSION = 0.1
TARGET = omvs
OBJS = \
@@ -9,6 +10,7 @@ RM = rm -rf
PKGS = gstreamer-1.0
CFLAGS = -I. `pkg-config --cflags $(PKGS)` `pcap-config --cflags`
CFLAGS += -std=gnu99 -W -Wall -Wno-unused-result -pedantic
CFLAGS += -DOMVS_VERSION=\"$(OMVS_VERSION)\"
LDFLAGS = `pkg-config --libs $(PKGS)` `pcap-config --libs`
ifeq ($(DEBUG),y)