# # make test command # NAME_SRC=tty2_test CFLAGS= -O -g -Wall -I /usr/include/ LDFLAGS=-lpthread CC=cc GET=co SRCS=$(NAME_SRC).c OBJS=$(NAME_SRC).o DEPEND= makedepend $(CFLAGS) all: $(NAME_SRC) # To make an executable $(NAME_SRC): $(OBJS) $(CC) $(LDFLAGS) -o $@ $(OBJS) # what are the source dependencies depend: $(SRCS) $(DEPEND) $(SRCS) # clean out the junk clean: -rm $(NAME_SRC) *~ *.o # DO NOT DELETE THIS LINE -- make depend depends on it. $(NAME_SRC).o: /usr/include/sys/types.h /usr/include/sys/stat.h \ /usr/include/fcntl.h /usr/include/pthread.h