# Build and run the regression tests. CC = gcc WARNFLAGS = -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wcast-align -Winline \ -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long \ -Werror OPTFLAGS = -O3 -pipe CPPFLAGS = -D_GNU_SOURCE CFLAGS = LDFLAGS = -L.. TESTS = xds-core.exe xds-find-engine.exe xds-register.exe xds-encode.exe \ xds-getbuffer.exe xds-decode.exe xds-setbuffer.exe xds-engine-restart.exe \ xdr-uint32.exe xdr-int32.exe xdr-uint64.exe xdr-int64.exe \ xdr-octetstream.exe xdr-octetstream-empty.exe xdr-string.exe \ xdr-string-empty.exe xds-mystruct.exe .SUFFIXES: .SUFFIXES: .c .exe .c.exe: $(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< -lxds .cpp.exe: $(CXX) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $< -lxds all: $(TESTS) check: all @./.run-tests $(TESTS) ../libxds.a: (cd .. && $(MAKE) libxds.a) clean:: rm -f $(TESTS) *.log # Dependencies $(TESTS): ../libxds.a