Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / scsi-idle / Makefile
blobd6d3ea803fcae099f30adb82bc21c5e2f9293f19
1 include ../common.mak
3 CFLAGS += -Wall -Os $(EXTRACFLAGS) -I$(SRCBASE) -I$(SRCBASE)/include -I$(LINUXDIR)/include -I.
4 ifeq ($(CONFIG_LINUX26),y)
5 CFLAGS += -DSCSI_SG
6 endif
8 TARGETS = scsi-start
10 all: $(TARGETS)
12 scsi-start: scsi-start.c
13 @$(CC) -o $@ $^ $(CFLAGS)
15 scsi-idle: scsi-idle.c
16 @$(CC) -o $@ $^ $(CFLAGS)
18 clean:
19 rm -f *.o $(TARGETS) *~
21 install: all
22 @install -d $(INSTALLDIR)/usr/sbin
23 @install -D scsi-start $(INSTALLDIR)/usr/sbin/scsi-start
24 @$(STRIP) -s $(INSTALLDIR)/usr/sbin/scsi-start
26 # scsi-stop is a symbolic link to scsi-start
27 cd $(INSTALLDIR)/usr/sbin && \
28 ln -sf scsi-start scsi-stop