wine-bass/bass/Makefile

120 lines
2.6 KiB
Makefile
Raw Permalink Normal View History

2023-03-10 02:23:12 +07:00
### Generated by Winemaker 0.8.4
###
### Invocation command line was
### /nix/store/h62yj7gxhwx6z03ql7jh3wjgivz0jdxv-devshell-dir/bin/winemaker . --dll --nosource-fix -DMightNeedSomething --wine32
SRCDIR = .
SUBDIRS =
DLLS = bass.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.dll sources and settings
bass_dll_MODULE = bass.dll
bass_dll_C_SRCS = bass_main.c
bass_dll_CXX_SRCS =
bass_dll_RC_SRCS =
bass_dll_LDFLAGS = -shared \
$(bass_dll_MODULE:.dll=.spec) \
-mno-cygwin \
-m32
bass_dll_ARFLAGS =
bass_dll_DLL_PATH =
bass_dll_DLLS = odbc32 \
ole32 \
oleaut32 \
winspool \
odbccp32
bass_dll_LIBRARY_PATH =
bass_dll_LIBRARIES = uuid bass
bass_dll_OBJS = $(bass_dll_C_SRCS:.c=.o) \
$(bass_dll_CXX_SRCS:.cpp=.o) \
$(bass_dll_RC_SRCS:.rc=.res)
### Global source lists
C_SRCS = $(bass_dll_C_SRCS)
CXX_SRCS = $(bass_dll_CXX_SRCS)
RC_SRCS = $(bass_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_dll_MODULE).so: $(bass_dll_OBJS) $(bass_dll_MODULE:.dll=.spec)
$(CC) $(bass_dll_LDFLAGS) -o $@ $(bass_dll_OBJS) $(bass_dll_LIBRARY_PATH) $(bass_dll_DLL_PATH) $(DEFLIB) $(bass_dll_DLLS:%=-l%) $(bass_dll_LIBRARIES:%=-l%)