fack
This commit is contained in:
parent
88d2c402fb
commit
a94f42eb81
8
Makefile
8
Makefile
|
@ -2,7 +2,7 @@ CC=
|
||||||
MKDIR=
|
MKDIR=
|
||||||
PCFLAGS=
|
PCFLAGS=
|
||||||
PLFLAGS=
|
PLFLAGS=
|
||||||
LIBEXT=
|
LIBNAME=
|
||||||
LFLAGS=-shared -g -ggdb
|
LFLAGS=-shared -g -ggdb
|
||||||
CFLAGS=--std=c99 -g -ggdb -Wall
|
CFLAGS=--std=c99 -g -ggdb -Wall
|
||||||
|
|
||||||
|
@ -10,17 +10,17 @@ ifeq ($(OS),Windows_NT)
|
||||||
CC+=mingw32-gcc
|
CC+=mingw32-gcc
|
||||||
MKDIR+=mkdir -p
|
MKDIR+=mkdir -p
|
||||||
PLFLAGS+=-Wl,--out-implib,bin/libLoveToken.a
|
PLFLAGS+=-Wl,--out-implib,bin/libLoveToken.a
|
||||||
LIBEXT+=dll
|
LIBNAME+=bin/LoveToken.dll
|
||||||
else
|
else
|
||||||
ifeq ($(shell uname -s), Linux)
|
ifeq ($(shell uname -s), Linux)
|
||||||
CC+=gcc
|
CC+=gcc
|
||||||
MKDIR+=mkdir -p
|
MKDIR+=mkdir -p
|
||||||
PCFLAGS+=-fPIC
|
PCFLAGS+=-fPIC
|
||||||
LIBEXT+=so
|
LIBNAME+=bin/lovetoken.so
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(MKDIR) bin
|
$(MKDIR) bin
|
||||||
$(CC) $(CFLAGS) $(PCFLAGS) -c -o bin/lt.o src/lt.c
|
$(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
|
||||||
|
|
Reference in New Issue
Block a user