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