Makefile 436 字节
Newer Older
1
PROG= acpidump
2 3
SRCS=	acpidump.c
KERNEL_INCLUDE := ../../../include
4
CFLAGS += -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Os -s -D_LINUX -DDEFINE_ALTERNATE_TYPES -I$(KERNEL_INCLUDE) 
5 6

all: acpidump
7
$(PROG) : $(SRCS)
8 9 10 11 12 13 14
	$(CC) $(CFLAGS) $(SRCS) -o $(PROG)

CLEANFILES= $(PROG)

clean : 
	rm -f $(CLEANFILES) $(patsubst %.c,%.o, $(SRCS)) *~

15 16 17 18
install :
	install acpidump /usr/bin/acpidump
	install acpidump.8 /usr/share/man/man8