Makefile error handling and consumer avformat cleanup
[melted] / src / humperdink / Makefile
index b8aba7a..f974b0d 100644 (file)
@@ -1,10 +1,12 @@
+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
 
@@ -29,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