1 #make src/test/Makefile.in -*- Makefile -*-
14 SRCS = gettty.c strings-memmove.c
15 OBJS = gettty.o strings-memmove.o
19 # Distribution variables
23 DIST = $(HDRS) $(SRCS) Makefile.in
27 $(CC) -c $(CPPFLAGS) $(XINC) -I. -I$(basedir) -I$(srcdir) $(DEFS) $(CFLAGS) $<
28 #-------------------------------------------------------------------------
32 @(cd $(srcdir)/..; ${MAKE} .protos)
33 @${MAKE} tests-bin run-tests
35 tests-bin: gettty gettty-debug strings-memmove
39 @echo "RUNNING TESTS ----"
40 @echo "Testing open of (pty/tty) pseudo-tty pairs"
41 @./gettty concise || ./gettty-debug
42 @echo "Testing possible replacement for memmove() with --enable-strings"
45 gettty: gettty.o ptytty.o
46 $(CC) $(LDFLAGS) -o $@ gettty.o ptytty.o $(LIBS)
48 gettty-debug: gettty.o ptytty-debug.o
49 $(CC) $(LDFLAGS) -o $@ gettty.o ptytty-debug.o $(LIBS)
51 ptytty.o: $(srcdir)/../ptytty.c
52 $(CC) -o ptytty.o $(CPPFLAGS) $(CFLAGS) -c $(srcdir)/../ptytty.c
54 ptytty-debug.o: $(srcdir)/../ptytty.c
55 $(CC) -o ptytty-debug.o $(CPPFLAGS) $(CFLAGS) $(DEBUG) -c $(srcdir)/../ptytty.c
57 strings-memmove: strings-memmove.o
58 $(CC) $(LDFLAGS) -o $@ strings-memmove.o $(LIBS)
60 $(srcdir)/../strings.intpro: $(srcdir)/../strings.c
61 (cd $(srcdir)/..; ${MAKE} strings.intpro)
71 $(RMF) gettty strings-memmove core a.out *.o *.bak *~
79 (cd $(srcdir); $(RMF) strings-memmove *~ *.o core a.out)
80 if test $(srcdir) = .; then $(MAKE) realclean; fi
81 (cd $(srcdir); $(RMF) Makefile)
88 mkdir $(basedir)/../$(VERNAME)/$(thisdir)
91 $(CP) -p $(DIST) $(basedir)/../$(VERNAME)/$(thisdir)
93 # -----------------------------------------------------------------------
94 # DO NOT DELETE: ugly dependency list follows
96 strings-memmove.o: strings-memmove.c $(srcdir)/../strings.c $(srcdir)/../strings.intpro