You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
518 B
Makefile
30 lines
518 B
Makefile
SHELL=/bin/sh
|
|
CC=gcc
|
|
|
|
LIB := -L
|
|
OS :=
|
|
ifeq ($(OS),windows)
|
|
#change these if needed
|
|
LIB += ../lib
|
|
LIB += -l:objc-1.dll -l:test.dll
|
|
CC=x86_64-w64-mingw32-gcc
|
|
endif
|
|
|
|
ifeq ($(OS),linux)
|
|
LIB += ~/code/objc/wow/lib/linux64
|
|
endif
|
|
|
|
static:
|
|
$(CC) YSObject.m -c
|
|
$(CC) YSZone.m -c
|
|
$(CC) YSArray.m -c
|
|
ar rcs libyeslib.a YSObject.o YSZone.o YSArray.o
|
|
|
|
shared:
|
|
$(CC) YSObject.m -c -Wl,--enable-auto-import
|
|
$(CC) YSZone.m -c
|
|
$(CC) YSArray.m -c
|
|
$(CC) -shared -o yeslib.dll YSObject.o YSZone.o YSArray.o $(LIB)
|
|
|
|
clean:
|
|
rm *.o
|