CC=gcc
LINK = $(CC)
OPTS = -O2 -pipe -fomit-frame-pointer -m386 -Wall
LDFLAGS = -s

SRC = sliplogin.c
OBJ = $(SRC:.c=.o)
LIBS = -lshadow -lbsd

TARGETS = sliplogin 

all: $(TARGETS)
	@echo done

sliplogin: $(OBJ) 
	$(LINK) $(OBJ) $(LIBS) $(LDFLAGS) -o $@

clean:
	rm -f $(OBJ) core 

install: sliplogin
	install -m4754 sliplogin /sbin
	install -m644 sliplogin.8 /usr/man/man8

depend:
	makedepend $(SRC)

ci:
	ci -m"I hate log messages!" -t-"I hate description prompts!" -l $(SRC) Makefile

co:
	co $(SRC) Makefile

.c.o: 
	$(CC) $(OPTS) -c $<

