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
443 B
Makefile

SHELL=/bin/sh
CC=gcc
LIB := -L
OS :=
ifeq ($(OS),windows)
LIB += lib/win64
CC=x86_64-w64-mingw32-gcc
endif
ifeq ($(OS),linux)
LIB += lib/linux64
endif
LIB += -lobjc
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
$(CC) YSZone.m -c
$(CC) YSArray.m -c
$(CC) -shared -fPIC -o yeslib.dll YSObject.o YSZone.o YSArray.o $(LIB)
clean:
rm *.o