Makefile (hdparm-9.58) | : | Makefile (hdparm-9.60) | ||
---|---|---|---|---|
skipping to change at line 18 | skipping to change at line 18 | |||
exec_prefix = $(binprefix)/ | exec_prefix = $(binprefix)/ | |||
sbindir = $(exec_prefix)sbin | sbindir = $(exec_prefix)sbin | |||
mandir = $(manprefix)/share/man | mandir = $(manprefix)/share/man | |||
oldmandir = $(manprefix)/man | oldmandir = $(manprefix)/man | |||
CC ?= gcc | CC ?= gcc | |||
STRIP ?= strip | STRIP ?= strip | |||
CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-q ual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fk eep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigr aphs $(CFLAGS) | CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-q ual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fk eep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigr aphs $(CFLAGS) | |||
LDFLAGS = -s | ||||
#LDFLAGS = -s -static | ||||
INSTALL = install | INSTALL = install | |||
INSTALL_DATA = $(INSTALL) -m 644 | INSTALL_DATA = $(INSTALL) -m 644 | |||
INSTALL_DIR = $(INSTALL) -m 755 -d | INSTALL_DIR = $(INSTALL) -m 755 -d | |||
INSTALL_PROGRAM = $(INSTALL) | INSTALL_PROGRAM = $(INSTALL) | |||
OBJS = hdparm.o identify.o sgio.o sysfs.o geom.o fallocate.o fibmap.o fwdownload .o dvdspeed.o wdidle3.o apt.o | OBJS = hdparm.o identify.o sgio.o sysfs.o geom.o fallocate.o fibmap.o fwdownload .o dvdspeed.o wdidle3.o apt.o | |||
all: | all: | |||
$(MAKE) -j4 hdparm | $(MAKE) -j4 hdparm | |||
hdparm: hdparm.h sgio.h $(OBJS) | static: | |||
LDFLAGS=-static $(MAKE) | ||||
hdparm: Makefile hdparm.h sgio.h $(OBJS) | ||||
$(CC) $(LDFLAGS) -o hdparm $(OBJS) | $(CC) $(LDFLAGS) -o hdparm $(OBJS) | |||
$(STRIP) hdparm | $(STRIP) hdparm | |||
hdparm.o: hdparm.h sgio.h | hdparm.o: hdparm.h sgio.h | |||
identify.o: hdparm.h | identify.o: hdparm.h | |||
dvdspeed.o: dvdspeed.c | dvdspeed.o: dvdspeed.c | |||
sgio.o: sgio.c sgio.h hdparm.h | sgio.o: sgio.c sgio.h hdparm.h | |||
End of changes. 2 change blocks. | ||||
3 lines changed or deleted | 4 lines changed or added |