Archived
1
0
This commit is contained in:
Marrub 2015-06-06 11:45:04 -04:00
parent 88d2c402fb
commit a94f42eb81

View File

@ -2,7 +2,7 @@ CC=
MKDIR=
PCFLAGS=
PLFLAGS=
LIBEXT=
LIBNAME=
LFLAGS=-shared -g -ggdb
CFLAGS=--std=c99 -g -ggdb -Wall
@ -10,17 +10,17 @@ ifeq ($(OS),Windows_NT)
CC+=mingw32-gcc
MKDIR+=mkdir -p
PLFLAGS+=-Wl,--out-implib,bin/libLoveToken.a
LIBEXT+=dll
LIBNAME+=bin/LoveToken.dll
else
ifeq ($(shell uname -s), Linux)
CC+=gcc
MKDIR+=mkdir -p
PCFLAGS+=-fPIC
LIBEXT+=so
LIBNAME+=bin/lovetoken.so
endif
endif
all:
$(MKDIR) bin
$(CC) $(CFLAGS) $(PCFLAGS) -c -o bin/lt.o src/lt.c
$(CC) $(LFLAGS) -o bin/LoveToken.$(LIBEXT) bin/lt.o $(PLFLAGS) -liconv
$(CC) $(LFLAGS) -o $(LIBNAME) bin/lt.o $(PLFLAGS) -liconv