120 lines
2.7 KiB
Makefile
120 lines
2.7 KiB
Makefile
|
### Generated by Winemaker 0.8.4
|
||
|
###
|
||
|
### Invocation command line was
|
||
|
### /nix/store/dakf9ix1da5vpahzng6m5kjbs78ylp4i-devshell-dir/bin/winemaker . --dll --nosource-fix -DMightNeedSomething --wine32
|
||
|
|
||
|
|
||
|
SRCDIR = .
|
||
|
SUBDIRS =
|
||
|
DLLS = bass_fx.dll
|
||
|
LIBS =
|
||
|
EXES =
|
||
|
|
||
|
|
||
|
|
||
|
### Common settings
|
||
|
|
||
|
CEXTRA = -mno-cygwin \
|
||
|
-m32 -Wall
|
||
|
CXXEXTRA = -m32
|
||
|
RCEXTRA =
|
||
|
DEFINES = -DMightNeedSomething
|
||
|
INCLUDE_PATH = -I.
|
||
|
DLL_PATH =
|
||
|
DLL_IMPORTS =
|
||
|
LIBRARY_PATH_1 =
|
||
|
LIBRARIES =
|
||
|
|
||
|
|
||
|
### bass_fx.dll sources and settings
|
||
|
|
||
|
bass_fx_dll_MODULE = bass_fx.dll
|
||
|
bass_fx_dll_C_SRCS = bass_fx_main.c
|
||
|
bass_fx_dll_CXX_SRCS =
|
||
|
bass_fx_dll_RC_SRCS =
|
||
|
bass_fx_dll_LDFLAGS = -shared \
|
||
|
$(bass_fx_dll_MODULE:.dll=.spec) \
|
||
|
-mno-cygwin \
|
||
|
-m32
|
||
|
bass_fx_dll_ARFLAGS =
|
||
|
bass_fx_dll_DLL_PATH =
|
||
|
bass_fx_dll_DLLS = odbc32 \
|
||
|
ole32 \
|
||
|
oleaut32 \
|
||
|
winspool \
|
||
|
odbccp32
|
||
|
bass_fx_dll_LIBRARY_PATH=
|
||
|
bass_fx_dll_LIBRARIES = uuid bass_fx
|
||
|
|
||
|
bass_fx_dll_OBJS = $(bass_fx_dll_C_SRCS:.c=.o) \
|
||
|
$(bass_fx_dll_CXX_SRCS:.cpp=.o) \
|
||
|
$(bass_fx_dll_RC_SRCS:.rc=.res)
|
||
|
|
||
|
|
||
|
|
||
|
### Global source lists
|
||
|
|
||
|
C_SRCS = $(bass_fx_dll_C_SRCS)
|
||
|
CXX_SRCS = $(bass_fx_dll_CXX_SRCS)
|
||
|
RC_SRCS = $(bass_fx_dll_RC_SRCS)
|
||
|
|
||
|
|
||
|
### Tools
|
||
|
|
||
|
CC = winegcc
|
||
|
CXX = wineg++
|
||
|
RC = wrc
|
||
|
AR = ar
|
||
|
|
||
|
|
||
|
### Generic targets
|
||
|
|
||
|
all: $(SUBDIRS) $(DLLS:%=%.so) $(LIBS) $(EXES)
|
||
|
|
||
|
### Build rules
|
||
|
|
||
|
.PHONY: all clean dummy
|
||
|
|
||
|
$(SUBDIRS): dummy
|
||
|
@cd $@ && $(MAKE)
|
||
|
|
||
|
# Implicit rules
|
||
|
|
||
|
.SUFFIXES: .cpp .cxx .rc .res
|
||
|
DEFINCL = $(INCLUDE_PATH) $(DEFINES) $(OPTIONS)
|
||
|
|
||
|
.c.o:
|
||
|
$(CC) -c $(CFLAGS) $(CEXTRA) $(DEFINCL) -o $@ $<
|
||
|
|
||
|
.cpp.o:
|
||
|
$(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $<
|
||
|
|
||
|
.cxx.o:
|
||
|
$(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $<
|
||
|
|
||
|
.rc.res:
|
||
|
$(RC) $(RCFLAGS) $(RCEXTRA) $(DEFINCL) -fo$@ $<
|
||
|
|
||
|
# Rules for cleaning
|
||
|
|
||
|
CLEAN_FILES = y.tab.c y.tab.h lex.yy.c core *.orig *.rej \
|
||
|
\\\#*\\\# *~ *% .\\\#*
|
||
|
|
||
|
clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__)
|
||
|
$(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(C_SRCS:.c=.o) $(CXX_SRCS:.cpp=.o)
|
||
|
$(RM) $(DLLS:%=%.so) $(LIBS) $(EXES) $(EXES:%=%.so)
|
||
|
|
||
|
$(SUBDIRS:%=%/__clean__): dummy
|
||
|
cd `dirname $@` && $(MAKE) clean
|
||
|
|
||
|
$(EXTRASUBDIRS:%=%/__clean__): dummy
|
||
|
-cd `dirname $@` && $(RM) $(CLEAN_FILES)
|
||
|
|
||
|
### Target specific build rules
|
||
|
DEFLIB = $(LIBRARY_PATH_1) $(LIBRARIES) $(DLL_PATH) $(DLL_IMPORTS:%=-l%)
|
||
|
|
||
|
$(bass_fx_dll_MODULE).so: $(bass_fx_dll_OBJS) $(bass_fx_dll_MODULE:.dll=.spec)
|
||
|
$(CC) $(bass_fx_dll_LDFLAGS) -o $@ $(bass_fx_dll_OBJS) $(bass_fx_dll_LIBRARY_PATH) $(bass_fx_dll_DLL_PATH) $(DEFLIB) $(bass_fx_dll_DLLS:%=-l%) $(bass_fx_dll_LIBRARIES:%=-l%)
|
||
|
|
||
|
|