diff options
Diffstat (limited to 'mdk-stage1/ppp/chat/Makefile.linux')
-rw-r--r-- | mdk-stage1/ppp/chat/Makefile.linux | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mdk-stage1/ppp/chat/Makefile.linux b/mdk-stage1/ppp/chat/Makefile.linux new file mode 100644 index 000000000..586cbd876 --- /dev/null +++ b/mdk-stage1/ppp/chat/Makefile.linux @@ -0,0 +1,27 @@ +# $Id$ + +CDEF1= -DTERMIOS # Use the termios structure +CDEF2= -DSIGTYPE=void # Standard definition +CDEF3= -UNO_SLEEP # Use the usleep function +CDEF4= -DFNDELAY=O_NDELAY # Old name value +CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4) + +CFLAGS= $(RPM_OPT_FLAGS) $(CDEFS) + +INSTALL= install + +all: chat + +chat: chat.o + $(CC) -o chat chat.o + +chat.o: chat.c + $(CC) -c $(CFLAGS) -o chat.o chat.c + +install: chat + mkdir -p $(BINDIR) + $(INSTALL) -s -c chat $(BINDIR) + $(INSTALL) -c -m 644 chat.8 $(MANDIR)/man8 + +clean: + rm -f chat.o chat *~ |