19 lines
389 B
Makefile
19 lines
389 B
Makefile
|
TARGET1 := write_misc
|
||
|
TARGET2 := read_misc
|
||
|
|
||
|
all: $(TARGET1) $(TARGET2) install
|
||
|
|
||
|
$(TARGET1) : write_misc.c misc_message.h misc_message.c
|
||
|
$(CC) $^ -o $@ -I.
|
||
|
|
||
|
$(TARGET2) : read_misc.c misc_message.h misc_message.c
|
||
|
$(CC) $^ -o $@ -I.
|
||
|
|
||
|
|
||
|
install:
|
||
|
mkdir -p $(INSTALL_PREFIX)/sbin
|
||
|
cp $(TARGET1) $(INSTALL_PREFIX)/sbin
|
||
|
cp $(TARGET2) $(INSTALL_PREFIX)/sbin
|
||
|
clean:
|
||
|
rm -rf $(TARGET1) $(TARGET2)
|