diff src/adplug/core/Makefile @ 351:82a9fabb5b46 trunk

[svn] prevent adplug makefile from pointlessly trying to link source files in the core library
author giacomo
date Sat, 09 Dec 2006 05:29:06 -0800
parents d19ac60697ec
children 368f8ee0a95f
line wrap: on
line diff
--- a/src/adplug/core/Makefile	Sat Dec 09 03:37:53 2006 -0800
+++ b/src/adplug/core/Makefile	Sat Dec 09 05:29:06 2006 -0800
@@ -3,13 +3,15 @@
 
 OBJECTIVE_LIBS_NOINST = libadplugcore.a
 
-SOURCES = adplug.cxx emuopl.cxx fmopl.c diskopl.cxx debug.c fprovide.cxx \
+C_SOURCES = fmopl.c debug.c adlibemu.c
+CXX_SOURCES = adplug.cxx emuopl.cxx diskopl.cxx fprovide.cxx \
 player.cxx database.cxx hsc.cxx sng.cxx imf.cxx players.cxx protrack.cxx \
 a2m.cxx adtrack.cxx amd.cxx bam.cxx d00.cxx dfm.cxx dmo.cxx hsp.cxx ksm.cxx \
 mad.cxx mid.cxx mkj.cxx cff.cxx dtm.cxx fmc.cxx mtk.cxx rad.cxx raw.cxx \
 sa2.cxx s3m.cxx xad.cxx flash.cxx bmf.cxx hybrid.cxx hyp.cxx psi.cxx rat.cxx \
-u6m.cxx rol.cxx xsm.cxx adlibemu.c dro.cxx lds.cxx temuopl.cxx msc.cxx rix.cxx \
-adl.cxx
+u6m.cxx rol.cxx xsm.cxx dro.cxx lds.cxx temuopl.cxx msc.cxx rix.cxx adl.cxx
+
+SOURCES = $(C_SOURCES) $(CXX_SOURCES)
 
 noinst_HEADERS = adplug.h emuopl.h fmopl.h silentopl.h opl.h diskopl.h \
 a2m.h amd.h bam.h d00.h dfm.h hsc.h hsp.h imf.h ksm.h lds.h mid.h mkj.h mtk.h \
@@ -21,6 +23,6 @@
 CXXFLAGS += $(PICFLAGS) $(BINIO_CFLAGS) -I../../../../intl -I../../../.. -Dstricmp=strcasecmp $(BEEP_DEFINES)
 CFLAGS += $(PICFLAGS) $(BINIO_CFLAGS) -I../../../../intl -I../../../.. -Dstricmp=strcasecmp $(BEEP_DEFINES)
 
-OBJECTS = ${SOURCES:.c=.o} ${SOURCES:.cxx=.o}
+OBJECTS = ${C_SOURCES:.c=.o} ${CXX_SOURCES:.cxx=.o}
 
 include ../../../mk/objective.mk