1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
MYCXXFLAGS=$(CXXFLAGS) -c MYLDFLAGS=$(LDFLAGS) ALL=libodbcpp.a OBJS = \ error.o \ connection.o \ dsn.o \ command.o \ ustring.o \ bind.o \ param.o \ column.o \ modifycommand.o \ selectcommand.o libodbcpp.a : ${OBJS} ar rc $@ ${OBJS} %.o : %.cpp $(CXX) $(MYCXXFLAGS) -o $@ $< .PHONY: clean clean: rm -f ${OBJS} ${ALL}