forked from libsdl-org/SDL_net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
81 lines (68 loc) · 2.02 KB
/
Makefile.am
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Makefile.am for the SDL portable network library
ACLOCAL_AMFLAGS = -I acinclude
AUTOMAKE_OPTIONS= foreign
lib_LTLIBRARIES = libSDL2_net.la
libSDL2_netincludedir = $(includedir)/SDL2
libSDL2_netinclude_HEADERS = \
include/SDL_net.h
libSDL2_net_la_SOURCES = \
src/SDLnet.c \
src/SDLnetTCP.c \
src/SDLnetUDP.c \
src/SDLnetselect.c \
src/SDLnetsys.h
EXTRA_DIST = \
Android.mk \
CHANGES.txt \
CMakeLists.txt \
LICENSE.txt \
Makefile.os2 \
Makefile.psp \
README.txt \
SDL2_net.spec \
SDL2_netConfig.cmake.in \
VisualC \
Xcode \
autogen.sh \
cmake \
mingw \
src/version.rc
libSDL2_net_la_CPPFLAGS = -I$(srcdir)/include
libSDL2_net_la_LDFLAGS = \
-no-undefined \
-release $(LT_RELEASE) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(LT_EXTRA)
libSDL2_net_la_LIBADD = @INETLIB@
if USE_VERSION_RC
libSDL2_net_la_DEPENDENCIES = src/version.o
endif
.rc.o:
$(RC) $< $@
if ENABLE_EXAMPLES
EXAMPLES = showinterfaces chat chatd
noinst_PROGRAMS = $(EXAMPLES)
endif
showinterfaces_SOURCES = examples/showinterfaces.c
showinterfaces_CPPFLAGS = -I$(srcdir)/include
showinterfaces_LDADD = libSDL2_net.la
chat_SOURCES = examples/chat.c examples/chat.h
chat_CPPFLAGS = -I$(srcdir)/include
chat_LDADD = libSDL2_net.la -lSDL2_test
chatd_SOURCES = examples/chatd.c
chatd_CPPFLAGS = -I$(srcdir)/include
chatd_LDADD = libSDL2_net.la
# Rule to build tar-gzipped distribution package
$(PACKAGE)-$(VERSION).tar.gz: distcheck
# Rule to build RPM distribution package
rpm: $(PACKAGE)-$(VERSION).tar.gz
rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = SDL2_net.pc
install-data-local:
$(MKDIR_P) $(DESTDIR)$(libdir)/cmake/SDL2_net
$(INSTALL) -m 644 sdl2_net-config.cmake $(DESTDIR)$(libdir)/cmake/SDL2_net
$(INSTALL) -m 644 sdl2_net-config-version.cmake $(DESTDIR)$(libdir)/cmake/SDL2_net
uninstall-hook:
rm $(DESTDIR)$(libdir)/cmake/SDL2_net/sdl2_net-config.cmake
rm $(DESTDIR)$(libdir)/cmake/SDL2_net/sdl2_net-config-version.cmake
rm -r $(DESTDIR)$(libdir)/cmake/SDL2_net