ossp-pkg/xds/Makefile
1.5
# Build libxds and support/test programs.
CC = gcc
CXX = g++
WARNFLAGS = -Wall -ansi -pedantic
OPTFLAGS = -O3 -pipe
CPPFLAGS =
CFLAGS =
CXXFLAGS =
LDFLAGS =
.c.o:
$(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) -c $<
.cpp.o:
$(CXX) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CXXFLAGS) -c $<
all: test xds.3
test: test.o
$(CC) $(LDFLAGS) -o $@ test.o
xds.3: xds.pod
pod2man --section=3 --center="XDS Library Programmer API " xds.pod >xds.3
clean::
rm -f test.o test
rm -f xds.3
# Dependencies
test.o: test.c xds.h