Add a proper build system

FossilOrigin-Name: 8679c61b2c82da9daa316ed5eb90ba1b69e608127afa318cbdbff56b53d65a74
This commit is contained in:
Jonathan Schleifer 2014-07-18 23:35:17 +00:00
parent 71342537cf
commit 35212e3305
28 changed files with 5118 additions and 76 deletions

22
src/Makefile Normal file
View file

@ -0,0 +1,22 @@
include ../extra.mk
SUBDIRS = exceptions
SHARED_LIB = ${OBJPGSQL_SHARED_LIB}
STATIC_LIB = ${OBJPGSQL_STATIC_LIB}
LIB_MAJOR = 0
LIB_MINOR = 1
SRCS = PGConnection.m \
PGResult.m \
PGResultRow.m
INCLUDES := ${SRCS:.m=.h} \
ObjPgSQL.h
OBJS_EXTRA = ${EXCEPTIONS_EXCEPTIONS_A}
LIB_OBJS_EXTRA = ${EXCEPTIONS_EXCEPTIONS_LIB_A}
include ../buildsys.mk
CPPFLAGS += -I. -Iexceptions
LD = ${OBJC}