Browse Source

Cleanup build rules

Fixes #32

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.1.0
falkTX 2 years ago
parent
commit
633c47ba61
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 9 deletions
  1. +2
    -9
      Makefile.mk

+ 2
- 9
Makefile.mk View File

@@ -36,8 +36,6 @@ INCLUDE_PATH += -I$(PREFIX)/include/wine
INCLUDE_PATH += -I$(PREFIX)/include/wine/windows
INCLUDE_PATH += -I$(PREFIX)/include/wine-development
INCLUDE_PATH += -I$(PREFIX)/include/wine-development/wine/windows
DLL_PATH =
LIBRARY_PATH =
LIBRARIES = $(shell pkg-config --libs jack)

# 64bit build needs an extra flag
@@ -48,7 +46,6 @@ endif
# Debug or Release
ifeq ($(DEBUG),true)
CEXTRA += -O0 -DDEBUG -g -D__WINESRC__
LIBRARIES +=
else
CEXTRA += -O2 -DNDEBUG -fvisibility=hidden
endif
@@ -77,7 +74,6 @@ wineasio_dll_LDFLAGS = -shared \
wineasio_dll_DLLS = odbc32 \
ole32 \
winmm
wineasio_dll_LIBRARY_PATH =
wineasio_dll_LIBRARIES = uuid

wineasio_dll_OBJS = $(wineasio_dll_C_SRCS:%.c=build$(M)/%.c.o)
@@ -97,18 +93,15 @@ build: rtaudio/include/asio.h $(DLLS:%=build$(M)/%)

# Implicit rules

DEFINCL = $(INCLUDE_PATH) $(DEFINES) $(OPTIONS)

build$(M)/%.c.o: %.c
@$(shell mkdir -p build$(M))
$(CC) -c $(DEFINCL) $(CFLAGS) $(CEXTRA) -o $@ $<
$(CC) -c $(INCLUDE_PATH) $(CFLAGS) $(CEXTRA) -o $@ $<

### Target specific build rules
DEFLIB = $(LIBRARY_PATH) $(LIBRARIES) $(DLL_PATH)

build$(M)/$(wineasio_dll_MODULE): $(wineasio_dll_OBJS)
$(WINEBUILD) -m$(M) --dll --fake-module -E $(wineasio_dll_MODULE).spec $^ -o $@

build$(M)/$(wineasio_dll_MODULE).so: $(wineasio_dll_OBJS)
$(WINECC) $^ $(wineasio_dll_LDFLAGS) $(wineasio_dll_LIBRARY_PATH) $(DEFLIB) \
$(WINECC) $^ $(wineasio_dll_LDFLAGS) $(LIBRARIES) \
$(wineasio_dll_DLLS:%=-l%) $(wineasio_dll_LIBRARIES:%=-l%) -o $@

Loading…
Cancel
Save