42 lines
1007 B
Makefile
Executable File
42 lines
1007 B
Makefile
Executable File
#
|
|
# "@[$]Makefile fuer getfile, putfile, local und remote"
|
|
#
|
|
|
|
ECHO = @/bin/echo
|
|
INCL = /usr/include
|
|
|
|
# Installationsnachricht
|
|
BIN = is ready for installation in /bin
|
|
|
|
# Cflags
|
|
#CFLAGS = -O -s
|
|
LDFLAGS = -lcompat
|
|
|
|
#
|
|
# Abhaengigkeiten und Aktionen
|
|
#
|
|
|
|
default: putfile getfile local
|
|
|
|
putfile: putfile.c $(INCL)/sgtty.h $(INCL)/sys/types.h \
|
|
$(INCL)/sys/stat.h $(INCL)/signal.h
|
|
$(CC) $(CFLAGS) putfile.c -o $@ $(LDFLAGS)
|
|
$(ECHO) $@ $(BIN)
|
|
$(ECHO) with mode: 751 owner: bin group: 0
|
|
|
|
local: local.c $(INCL)/sgtty.h
|
|
$(CC) $(CFLAGS) local.c -o $@ $(LDFLAGS)
|
|
$(ECHO) $@ $(BIN)
|
|
$(ECHO) with mode: 751 owner: bin group: 0
|
|
|
|
getfile: getfile.c $(INCL)/sgtty.h $(INCL)/signal.h
|
|
$(CC) $(CFLAGS) getfile.c -o $@ $(LDFLAGS)
|
|
$(ECHO) $@ $(BIN)
|
|
$(ECHO) with mode: 751 owner: bin group: 0
|
|
|
|
remote: remote.c $(INCL)/termios.h $(INCL)/signal.h $(INCL)/stdio.h \
|
|
$(INCL)/sys/types.h $(INCL)/sys/stat.h $(INCL)/pwd.h
|
|
$(CC) $(CFLAGS) remote.c -o $@
|
|
$(ECHO) $@ $(BIN)
|
|
$(ECHO) with mode: 751 owner: bin group: 0
|