Archived
1
0
This repository has been archived on 2019-01-29. You can view files and clone it, but cannot push or open issues or pull requests.
LoveToken/Makefile
2015-06-06 11:45:04 -04:00

27 lines
508 B
Makefile

CC=
MKDIR=
PCFLAGS=
PLFLAGS=
LIBNAME=
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
LIBNAME+=bin/LoveToken.dll
else
ifeq ($(shell uname -s), Linux)
CC+=gcc
MKDIR+=mkdir -p
PCFLAGS+=-fPIC
LIBNAME+=bin/lovetoken.so
endif
endif
all:
$(MKDIR) bin
$(CC) $(CFLAGS) $(PCFLAGS) -c -o bin/lt.o src/lt.c
$(CC) $(LFLAGS) -o $(LIBNAME) bin/lt.o $(PLFLAGS) -liconv