2 include $(TESTDIR)/Rules.mak
6 TARGETS=termios termios_glibc
10 termios: termios.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
13 -@ echo "Compiling vs uClibc: "
15 $(TESTCC) $(CFLAGS) -c $< -o $@.o
16 $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
17 $(STRIPTOOL) -x -R .note -R .comment $@
23 termios_glibc: termios.c Makefile
26 -@ echo "Compiling vs GNU libc: "
28 $(CC) $(CFLAGS) -c $< -o $@.o
29 $(CC) $(LDFLAGS) $@.o -o $@
30 $(STRIPTOOL) -x -R .note -R .comment $@
37 rm -f *.[oa] *~ core $(TARGETS)