mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
9fbff2f4d5
o All instances of LIBADD/LDADD have a corresponding DEPENDENCIES specificatiion. o libraries now use a lib_ldflags macro to keep things consistent o duplication of source/lib names has been minimized (particularly in the libraries; more work needs to be done for the executables) o automake spec blocks have been organized (again, more work needs to be done for the executables)
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
AUTOMAKE_OPTIONS= foreign
|
|
|
|
SUBDIRS= . test
|
|
|
|
AM_CFLAGS= @PREFER_PIC@
|
|
CCASFLAGS+= @PREFER_PIC@
|
|
INCLUDES= -I$(top_srcdir)/include
|
|
|
|
lib_LTLIBRARIES= libQFutil.la
|
|
|
|
lib_ldflags=-version-info $(QUAKE_LIBRARY_VERSION_INFO) \
|
|
-rpath $(libdir) -no-undefined
|
|
|
|
if ASM_ARCH
|
|
asm= libasm.la
|
|
else
|
|
asm=
|
|
endif
|
|
|
|
noinst_LTLIBRARIES= $(asm)
|
|
#EXTRA_LTLIBRARIES= libasm.la
|
|
|
|
libasm_la_SOURCES= math.S sys_ia32.S
|
|
|
|
|
|
fnmatch_src= fnmatch.c dirent.c
|
|
getopt_src= getopt.c getopt1.c
|
|
if BUILD_FNMATCH
|
|
fnmatch= $(fnmatch_src)
|
|
else
|
|
fnmatch=
|
|
endif
|
|
|
|
if BUILD_GETOPT
|
|
getopt= $(getopt_src)
|
|
else
|
|
getopt=
|
|
endif
|
|
|
|
libQFutil_la_LDFLAGS= $(lib_ldflags)
|
|
libQFutil_la_LIBADD= $(asm) $(Z_LIBS) $(DL_LIBS) $(WIN32_LIBS)
|
|
libQFutil_la_DEPENDENCIES= $(asm)
|
|
libQFutil_la_SOURCES= \
|
|
bspfile.c buildnum.c cbuf.c checksum.c cmd.c crc.c cvar.c dstring.c \
|
|
fendian.c hash.c idparse.c info.c link.c llist.c \
|
|
mathlib.c mdfour.c msg.c pakfile.c plugin.c qargs.c qendian.c \
|
|
qfplist.c quakefs.c quakeio.c riff.c script.c sizebuf.c string.c sys.c \
|
|
va.c ver_check.c vrect.c wad.c wadfile.c zone.c $(fnmatch) $(getopt)
|
|
|
|
EXTRA_DIST= $(fnmatch_src) $(getopt_src)
|