Imported Upstream version 1.05
This commit is contained in:
54
Makefile
Normal file
54
Makefile
Normal file
@@ -0,0 +1,54 @@
|
||||
###############################################################################
|
||||
#
|
||||
# General Definitions
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
ifdef DESTDIR
|
||||
# dh_auto_install (Debian) sets this variable
|
||||
TARGET_DIR = $(DESTDIR)/usr
|
||||
else
|
||||
TARGET_DIR ?= /usr/local
|
||||
endif
|
||||
|
||||
LIB_DIRS =
|
||||
|
||||
INC_DIRS =
|
||||
|
||||
CC ?= gcc
|
||||
CFLAGS += $(INC_DIRS) -Wall
|
||||
|
||||
LD = $(CC)
|
||||
LDFLAGS += $(LIB_DIRS)
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Main Dependencies
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
TARGET = hd-idle
|
||||
|
||||
LIBS =
|
||||
|
||||
SRCS = hd-idle.c
|
||||
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
distclean: clean
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) $(TARGET)
|
||||
|
||||
install: $(TARGET)
|
||||
install -D -g root -o root $(TARGET) $(TARGET_DIR)/sbin/$(TARGET)
|
||||
install -D -g root -o root $(TARGET).1 $(TARGET_DIR)/share/man/man1/$(TARGET).1
|
||||
|
||||
hd-idle.o: hd-idle.c
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(LD) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIB_DIRS) $(LIBS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user