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

27 lines
490 B
Makefile
Raw Normal View History

2015-06-06 08:35:18 -07:00
CC=
MKDIR=
PCFLAGS=
PLFLAGS=
2015-06-06 08:39:59 -07:00
LIBEXT=
2015-06-06 08:35:18 -07:00
LFLAGS=-shared -g -ggdb
CFLAGS=--std=c99 -g -ggdb -Wall
ifeq ($(OS),Windows_NT)
2015-06-06 08:39:59 -07:00
CC+=mingw32-gcc
MKDIR+=mkdir -p
PLFLAGS+=-Wl,--out-implib,bin/libLoveToken.a
LIBEXT+=dll
2015-06-06 08:35:18 -07:00
else
ifeq ($(shell uname -s), Linux)
2015-06-06 08:39:59 -07:00
CC+=gcc
MKDIR+=mkdir -p
PCFLAGS+=-fPIC
LIBEXT+=so
2015-06-06 08:35:18 -07:00
endif
endif
2015-06-05 04:09:08 -07:00
all:
2015-06-06 08:35:18 -07:00
$(MKDIR) bin
$(CC) $(CFLAGS) $(PCFLAGS) -c -o bin/lt.o src/lt.c
2015-06-06 08:39:59 -07:00
$(CC) $(LFLAGS) -o bin/LoveToken.$(LIBEXT) bin/lt.o $(PLFLAGS) -liconv