aboutsummaryrefslogtreecommitdiffstats
path: root/util/dvbdate/Makefile
blob: ea514db05a5c5b5f26afdcf0a1d4ab48bd1923aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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