various fixes for out-of-srcdir building

configure.in:
	foo/Makefile MUST come before foo/bar/Makefile or foo/bar will NOT be
	created.
libs/*...*/Mkaefile.am: add INCLUDES so $(top_scrdir)/include gets searched
{qw,nq}/source/Makefile.am: fix fbset compiling (and cleaning for nq)
This commit is contained in:
Bill Currie 2001-04-11 03:09:24 +00:00
parent 0f98bc01be
commit 9cd83e178f
6 changed files with 30 additions and 14 deletions

View file

@ -1426,30 +1426,37 @@ AC_SUBST(QW_TARGETS)
dnl Output files
AC_OUTPUT(
RPM/build_rpm
debian/Makefile
doc/Makefile
doc/texinfo/Makefile
doc/man/Makefile
Makefile
include/Makefile
include/QF/Makefile
include/win32/version.h
libs/Makefile
libs/audio/Makefile
libs/audio/cd/Makefile
libs/audio/targets/Makefile
libs/gamecode/Makefile
libs/util/Makefile
qw/include/Makefile
qw/source/Makefile
qw/Makefile
qw/quakeforge.lsm
Makefile
qw/include/Makefile
qw/source/Makefile
nq/Makefile
nq/nuq.lsm
nq/include/Makefile
nq/source/Makefile
nq/Makefile
nq/nuq.lsm,
doc/Makefile
doc/man/Makefile
doc/texinfo/Makefile
debian/Makefile
RPM/build_rpm,
chmod +x RPM/build_rpm
)

View file

@ -1,3 +1,5 @@
INCLUDES= -I$(top_srcdir)/include
lib_LTLIBRARIES = libQFcd.la
libQFcd_la_LDFLAGS = -version-info 1:0:0 $(CD_LIBS)

View file

@ -1,3 +1,5 @@
INCLUDES= -I$(top_srcdir)/include
lib_LTLIBRARIES = libQFsound.la
libQFsound_la_LDFLAGS = -version-info 1:0:0 $(CD_LIBS)

View file

@ -1,3 +1,5 @@
INCLUDES= -I$(top_srcdir)/include
lib_LTLIBRARIES = libQFutil.la
libQFutil_la_LDFLAGS = -version-info 1:0:0 $(Z_LIBS)

View file

@ -124,9 +124,9 @@ YACCLEX_CLEANFILES= fbset_modes_y.c fbset_modes_y.h fbset_modes_y.tab.h fbset_mo
EXTRA_nq_fbdev_SOURCES=fbset_modes_y.h
fbset_modes_y.o: fbset_modes_y.c
$(CC) $(INCLUDES) $(CFLAGS) -Wno-error -c fbset_modes_y.c
$(COMPILE) -Wno-error -c fbset_modes_y.c
fbset_modes_l.o: fbset_modes_l.c
$(CC) $(INCLUDES) $(CFLAGS) -Wno-error -c fbset_modes_l.c
$(COMPILE) -Wno-error -c fbset_modes_l.c
nq_fbdev_SOURCES= $(combined_SOURCES) $(soft_SOURCES) $(fbdev_SOURCES)
nq_fbdev_LDADD= $(client_LIBS)
@ -229,3 +229,6 @@ nq_server_DEPENDENCIES=libqfnet.a
# or it won't be distributed with 'make dist'
#
EXTRA_DIST= #nq.dsp
# Kill the temp files, hopefully.
CLEANFILES = *.i *.s $(YACCLEX_CLEANFILES)

View file

@ -162,9 +162,9 @@ YACCLEX_CLEANFILES= fbset_modes_y.c fbset_modes_y.h fbset_modes_y.tab.h fbset_mo
EXTRA_qw_client_fbdev_SOURCES=fbset_modes_y.h
fbset_modes_y.o: fbset_modes_y.c
$(CC) $(INCLUDES) $(CFLAGS) -Wno-error -c fbset_modes_y.c
$(COMPILE) -Wno-error -c fbset_modes_y.c
fbset_modes_l.o: fbset_modes_l.c
$(CC) $(INCLUDES) $(CFLAGS) -Wno-error -c fbset_modes_l.c
$(COMPILE) -Wno-error -c fbset_modes_l.c
qw_client_fbdev_SOURCES= $(common_SOURCES) $(client_SOURCES) $(soft_SOURCES) $(fbdev_SOURCES)
qw_client_fbdev_LDADD= $(CLIENT_LIBS)