ObjIRC  Check-in [3bac4aa7d3]

Overview
Comment:Add a proper build system
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3bac4aa7d3604e08794a83ca9017fe0a21c33382b41a733325f2f969f3dc5e91
User & Date: js on 2016-05-07 11:58:33
Other Links: manifest | tags
Context
2017-01-10
00:58
Fix channel iteration in QUIT handler check-in: fc04e870e4 user: js tags: trunk
2016-05-07
11:58
Add a proper build system check-in: 3bac4aa7d3 user: js tags: trunk
11:45
Update copyright check-in: 85f791ce81 user: js tags: trunk
Changes

Added .gitignore version [0f2bb74e3e].

Deleted Info.plist version [cb809b3fe7].

Modified Makefile from [7a7c8739bf] to [326a1c67de].

1
2
3
4
5
6
7
all:
	cd src && ${MAKE} ${MFLAGS}
	cd tests && ${MAKE} ${MFLAGS}

clean:
	cd src && ${MAKE} ${MFLAGS} clean
	cd tests && ${MAKE} ${MFLAGS} clean
<
<
|

|
|
|


1
2
3
4
5


SUBDIRS = src tests

include buildsys.mk

tests: src

Deleted ObjIRC.xcodeproj/project.pbxproj version [30b96ebcd4].

Added build-aux/config.guess version [24a82e3051].

Added build-aux/config.sub version [30afda0058].

Added build-aux/install-sh version [4fa2988af1].

Added buildsys.mk.in version [a8b77677a0].

Added configure.ac version [5fd19afa5a].

Added extra.mk.in version [b4d5cedc53].

Added m4/buildsys.m4 version [fae9237ad2].

Modified src/Makefile from [cda533a428] to [dc2092e51f].


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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

LIB = objirc


LIB_MAJOR = 0
LIB_MINOR = 0

SRCS = IRCConnection.m	\
       IRCUser.m

HEADERS = ${SRCS:.m=.h}	\
	  ObjIRC.h

CPPFLAGS += -I.
OBJCFLAGS += -Werror

prefix ?= /usr/local

INSTALL ?= install
OBJFW_CONFIG ?= objfw-config
OBJFW_COMPILE ?= objfw-compile

LIB_PREFIX = `${OBJFW_CONFIG} --lib-prefix`
LIB_SUFFIX = `${OBJFW_CONFIG} --lib-suffix`
LIB_FILE = ${LIB_PREFIX}${LIB}${LIB_SUFFIX}

all:
	@objfw-compile				\
		--lib ${LIB_MAJOR}.${LIB_MINOR}	\
		-o objirc			\
		--builddir build		\
		${CPPFLAGS}			\
		${OBJCFLAGS}			\
		${SRCS}

clean:
	rm -f libobjirc.* *~
	rm -fr build

install:
	mkdir -p ${destdir}${prefix}/include/ObjIRC
	for i in ${HEADERS}; do \
		${INSTALL} -m 644 $$i \
			${destdir}${prefix}/include/ObjIRC/$$i; \
	done
	mkdir -p ${destdir}${prefix}/lib
	export LIB_MAJOR=${LIB_MAJOR}; \
	export LIB_MINOR=${LIB_MINOR}; \
	${INSTALL} -m 755 ${LIB_FILE} ${destdir}${prefix}/lib/${LIB_FILE}
>
|
>
>
|
|

|


|
|

<
<
|
<

<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
1
2
3
4
5
6
7
8
9
10
11
12
13


14

15














16
















include ../extra.mk

SHARED_LIB = ${OBJIRC_SHARED_LIB}
STATIC_LIB = ${OBJIRC_STATIC_LIB}
LIB_MAJOR = ${OBJIRC_LIB_MAJOR}
LIB_MINOR = ${OBJIRC_LIB_MINOR}

SRCS = IRCConnection.m \
       IRCUser.m

INCLUDES = ${SRCS:.m=.h}	\
	   ObjIRC.h



include ../buildsys.mk
















LD = ${OBJC}
















Modified tests/Makefile from [45fe247639] to [114ac286fa].


1


2

3



4


























5






all:


	objfw-compile -Wall -g -o tests *.m -I../src -L../src -lobjirc





clean:


























	rm -f tests *.o





>
|
>
>
|
>

>
>
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
>
>
>
>
>
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
include ../extra.mk

PROG_NOINST = tests${PROG_SUFFIX}
SRCS = tests.m

include ../buildsys.mk

post-all: ${RUN_TESTS}

.PHONY: run
run:
	rm -f libobjirc.so.${OBJIRC_LIB_MAJOR}
	rm -f libobjirc.so.${OBJIRC_LIB_MAJOR_MINOR}
	rm -f libobjirc.dll libobjirc.${OBJIRC_LIB_MAJOR}.dylib
	if test -f ../src/libobjirc.so; then \
		${LN_S} ../src/libobjirc.so libobjirc.so.${OBJIRC_LIB_MAJOR}; \
		${LN_S} ../src/libobjirc.so \
			libobjirc.so.${OBJIRC_LIB_MAJOR_MINOR}; \
	elif test -f ../src/libobjirc.so.${OBJIRC_LIB_MAJOR_MINOR}; then \
		${LN_S} ../src/libobjirc.so.${OBJIRC_LIB_MAJOR_MINOR} \
			libobjirc.so.${OBJIRC_LIB_MAJOR_MINOR}; \
	fi
	if test -f ../src/libobjirc.dll; then \
		${LN_S} ../src/libobjirc.dll libobjirc.dll; \
	fi
	if test -f ../src/libobjirc.dylib; then \
		${LN_S} ../src/libobjirc.dylib \
			libobjirc.${OBJIRC_LIB_MAJOR}.dylib; \
	fi
	LD_LIBRARY_PATH=.$${LD_LIBRARY_PATH+:}$$LD_LIBRARY_PATH \
	DYLD_LIBRARY_PATH=.$${DYLD_LIBRARY_PATH+:}$$DYLD_LIBRARY_PATH \
	LIBRARY_PATH=.$${LIBRARY_PATH+:}$$LIBRARY_PATH \
	${TEST_LAUNCHER} ./${PROG_NOINST}; EXIT=$$?; \
	rm -f libobjirc.so.${OBJIRC_LIB_MAJOR}; \
	rm -f libobjirc.so.${OBJIRC_LIB_MAJOR_MINOR} libobjirc.dll; \
	rm -f libobjirc.${OBJIRC_LIB_MAJOR}.dylib; \
	exit $$EXIT

${PROG_NOINST}: ${LIBOBJIRC_DEP}

CPPFLAGS += -I../src -I../src/exceptions
LIBS += -L../src -lobjirc
LD = ${OBJC}

Deleted tests/test.m version [9f9c8d8d61].

Added tests/tests.m version [9f9c8d8d61].