Len Brown | 981efe9 | 2012-09-22 22:49:25 -0400 | [diff] [blame] | 1 | PROG= acpidump |
Len Brown | 0efea7b | 2012-09-22 22:33:19 -0400 | [diff] [blame] | 2 | SRCS= acpidump.c |
| 3 | KERNEL_INCLUDE := ../../../include |
Len Brown | 981efe9 | 2012-09-22 22:49:25 -0400 | [diff] [blame] | 4 | CFLAGS += -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Os -s -D_LINUX -DDEFINE_ALTERNATE_TYPES -I$(KERNEL_INCLUDE) |
Len Brown | 0efea7b | 2012-09-22 22:33:19 -0400 | [diff] [blame] | 5 | |
| 6 | all: acpidump |
Len Brown | 981efe9 | 2012-09-22 22:49:25 -0400 | [diff] [blame] | 7 | $(PROG) : $(SRCS) |
Len Brown | 0efea7b | 2012-09-22 22:33:19 -0400 | [diff] [blame] | 8 | $(CC) $(CFLAGS) $(SRCS) -o $(PROG) |
| 9 | |
| 10 | CLEANFILES= $(PROG) |
| 11 | |
| 12 | clean : |
| 13 | rm -f $(CLEANFILES) $(patsubst %.c,%.o, $(SRCS)) *~ |
| 14 | |
Len Brown | 0e7cc27 | 2012-09-22 23:30:22 -0400 | [diff] [blame] | 15 | install : |
Thomas Renninger | e183fcb | 2013-02-05 23:35:32 +0100 | [diff] [blame] | 16 | install acpidump /usr/sbin/acpidump |
Len Brown | 0e7cc27 | 2012-09-22 23:30:22 -0400 | [diff] [blame] | 17 | install acpidump.8 /usr/share/man/man8 |
| 18 | |