X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fhumperdink%2FMakefile;h=f974b0dbe6bab1eb6ed8bd1c48566daf93303e48;hb=ccb141370c67b8c328244dc8931692f5d3722266;hp=86fc4048c70605edbe02f94f5fc2d808d8c9d52c;hpb=8a3795b090723264c973d274eedc28da480e76fd;p=melted diff --git a/src/humperdink/Makefile b/src/humperdink/Makefile index 86fc404..f974b0d 100644 --- a/src/humperdink/Makefile +++ b/src/humperdink/Makefile @@ -1,13 +1,20 @@ +include ../../config.mak + TARGET = humperdink OBJS = client.o \ io.o \ remote.o -CFLAGS = -O3 -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic +CFLAGS = -O4 -pipe -ffast-math -fomit-frame-pointer -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic LDFLAGS = -L ../valerie -lvalerie +ifeq ($(MLT_GPROF),true) +CFLAGS+=-p +LDFLAGS+=-p +endif + SRCS := $(OBJS:.o=.c) all: $(TARGET) @@ -24,6 +31,10 @@ dist-clean: clean clean: rm -f $(OBJS) $(TARGET) +install: all + install -d "$(bindir)" + install -c -s -m 755 $(TARGET) "$(bindir)" + ifneq ($(wildcard .depend),) include .depend endif