diff --git a/Makefile b/Makefile deleted file mode 100644 index 7ab9a12..0000000 --- a/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -DEBUG = y -OMVS_VERSION = 0.1 - -TARGET = omvs -OBJS = \ - omvs_main.o \ - omvs_gst.o -CC = gcc -LD = gcc -RM = rm -rf -PKGS = gstreamer-1.0 gio-2.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) -CFLAGS += -g -O0 -LDFLAGS += -g -O0 -else -CFLAGS += -O2 -DG_DISABLE_CHECKS -DG_DISABLE_ASSERT -LDFLAGS += -O2 -endif - -.PHONY: all clean run - -all: $(TARGET) - -clean: - $(RM) $(TARGET) $(OBJS) - -run: $(TARGET) -ifeq ($(DEBUG), y) - ulimit -c unlimited ; G_MESSAGES_DEBUG=all ./$(TARGET) -else - ./$(TARGET) -endif - -$(TARGET): $(OBJS) - $(LD) -o $@ $^ $(LDFLAGS) - -%.o: %.c - $(CC) $(CFLAGS) -c -o $@ $< diff --git a/omvs_main.c b/omvs_main.c index fb99397..b2173a4 100644 --- a/omvs_main.c +++ b/omvs_main.c @@ -5,6 +5,7 @@ #include #include +#include "config.h" #include "omvs_gst.h" #define _OMVS_IPPROTO_UDP 17 @@ -418,9 +419,8 @@ int main(int argc, char *argv[]) { "omvs scans to find free video streaming multicast ip addresses." ); g_option_context_set_description(context, - "Oh! Multicast Video Scanner " OMVS_VERSION " is" - " Written by Taeho Oh .\n" - "http://ohhara.sarang.net"); + PACKAGE_STRING " is Written by Taeho Oh .\n" + PACKAGE_URL "\n"); g_option_context_add_main_entries(context, _omvs_entries, NULL); g_option_context_add_group(context, gst_init_get_option_group()); if (!g_option_context_parse(context, &argc, &argv, &error)) {