-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (20 loc) · 672 Bytes
/
Makefile
File metadata and controls
30 lines (20 loc) · 672 Bytes
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
26
27
28
29
30
CC=gcc
CFLAGS=-g -Wall
SRC=atsc_psip_section.c diseqc.c dump-vdr.c dump-zap.c dump-m3u.c lnb.c scan.c section.c htable.c bouquet.c
HED=atsc_psip_section.h diseqc.h dump-vdr.h dump-zap.h dump-m3u.h lnb.h scan.h section.h list.h htable.h bouquet.h
OBJ=atsc_psip_section.o diseqc.o dump-vdr.o dump-zap.o dump-m3u.o lnb.o scan.o section.o htable.o bouquet.o
BIND=/usr/local/bin/
INCLUDE=-I../s2/linux/include
TARGET=scan-s2
all: $(TARGET)
$(TARGET): $(OBJ)
$(CC) $(CFLG) $(OBJ) -o $(TARGET) $(CLIB)
$(OBJ): $(HED)
install: all
cp $(TARGET) $(BIND)
uninstall:
rm $(BIND)$(TARGET)
clean:
rm -f $(OBJ) $(TARGET) *~
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@