diff options
Diffstat (limited to 'util/dvbdate/Makefile')
-rw-r--r-- | util/dvbdate/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/util/dvbdate/Makefile b/util/dvbdate/Makefile new file mode 100644 index 0000000..ea514db --- /dev/null +++ b/util/dvbdate/Makefile @@ -0,0 +1,25 @@ + +CC = gcc +CFLAGS = -g -O2 -MD -Wall -I. -I../../include +LFLAGS = + +OBJS = dvbdate.o +TARGET = dvbdate +DESTDIR = /usr/local/bin/ + +all: $(TARGET) + +.c.o: + $(CC) $(CFLAGS) -c $< -o $@ + +$(TARGET): $(OBJS) + $(CC) -o $@ $(OBJS) $(LFLAGS) + +install: all + install -m 755 $(TARGET) $(DESTDIR) + +clean: + rm -f $(TARGET) $(OBJS) core* *~ *.d + +-include $(wildcard *.d) dummy + |