Skip to content

Commit

Permalink
moved Makefile.osx stuff with conditions inside Makefile so that just…
Browse files Browse the repository at this point in the history
… one

Makefile will be needed
  • Loading branch information
steveschow committed Nov 12, 2014
1 parent b7b9e2a commit 12ee1c5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
24 changes: 17 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
### Generated by Winemaker

PREFIX = /usr
# For MacOS set a few things differently then everyone else
PLATFORM := $(shell uname -s)
ifeq ($(PLATFORM),Darwin)
PREFIX = /usr/local
PLATDLL = /usr/local/lib
INTSAMPLES = -DASIOST32INT
else
PREFIX = /usr
PLATDLL = /usr/lib32
INTSAMPLES =
endif

SRCDIR = .
SUBDIRS =
DLLS = wineasio.dll
EXES =



### Common settings

CEXTRA = -m32 -g -O2 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
CXXEXTRA = -m32 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
CEXTRA = -m32 -g -O2 $(INTSAMPLES) -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
CXXEXTRA = -m32 $(INTSAMPLES) -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
RCEXTRA =
INCLUDE_PATH = -I. -I/usr/include -I$(PREFIX)/include -I$(PREFIX)/include/wine -I$(PREFIX)/include/wine/windows
DLL_PATH =
Expand All @@ -31,8 +40,8 @@ wineasio_dll_LDFLAGS = -shared \
-m32 \
$(wineasio_dll_MODULE:%=%.spec) \
-mnocygwin \
-L/usr/lib32/wine \
-L/usr/lib32
-L$(PLATDLL)/wine \
-L$(PLATDLL)
wineasio_dll_DLL_PATH =
wineasio_dll_DLLS = odbc32 \
ole32 \
Expand Down Expand Up @@ -115,3 +124,4 @@ $(wineasio_dll_MODULE).so: $(wineasio_dll_OBJS)

install:
if [ -d $(PREFIX)/lib32/wine ]; then cp wineasio.dll.so $(DESTDIR)$(PREFIX)/lib32/wine; else cp wineasio.dll.so $(DESTDIR)$(PREFIX)/lib/wine; fi

21 changes: 16 additions & 5 deletions Makefile64
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
### Generated by Winemaker

PREFIX = /usr
# For MacOS set a few things differently then everyone else
PLATFORM := $(shell uname -s)
ifeq ($(PLATFORM),Darwin)
PREFIX = /usr/local
PLATDLL = /usr/local/lib
INTSAMPLES = -DASIOST32INT
else
PREFIX = /usr
PLATDLL = /usr/lib
INTSAMPLES =
endif

SRCDIR = .
SUBDIRS =
DLLS = wineasio.dll
Expand All @@ -10,8 +21,8 @@ EXES =

### Common settings

CEXTRA = -g -O2 -D__WINESRC__ -DNATIVE_INT64 -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
CXXEXTRA = -D__WINESRC__ -DNATIVE_INT64 -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
CEXTRA = -g -O2 $(INTSAMPLES) -D__WINESRC__ -DNATIVE_INT64 -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
CXXEXTRA = $(INTSAMPLES) -D__WINESRC__ -DNATIVE_INT64 -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
RCEXTRA =
INCLUDE_PATH = -I. -I/usr/include -I$(PREFIX)/include -I$(PREFIX)/include/wine -I$(PREFIX)/include/wine/windows
DLL_PATH =
Expand All @@ -30,8 +41,8 @@ wineasio_dll_RC_SRCS =
wineasio_dll_LDFLAGS = -shared \
$(wineasio_dll_MODULE:%=%.spec) \
-mnocygwin \
-L/usr/lib/wine \
-L/usr/lib
-L$(PLATDLL)/wine \
-L$(PLATDLL)
wineasio_dll_DLL_PATH =
wineasio_dll_DLLS = odbc32 \
ole32 \
Expand Down

0 comments on commit 12ee1c5

Please sign in to comment.