BIN_DIR = /home/mats/bin CFLAGS = -Wall -O -pipe -fomit-frame-pointer -I/usr/X11R6/include LIBS = -L/usr/X11R6/lib -lX11 -lutil PROG = ttyemu OBJS = ttyemu.o all: $(PROG) $(PROG): $(OBJS) $(CC) -o $(.TARGET) $(.ALLSRC) $(LIBS) install: $(PROG) cp $(PROG) $(BIN_DIR) cd $(BIN_DIR) && ln -sf $(PROG) glasstty && ln -sf $(PROG) hctty clean: /bin/rm -f *.o *.core $(PROG) .