fack
This commit is contained in:
parent
88d2c402fb
commit
a94f42eb81
8
Makefile
8
Makefile
|
@ -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
|
||||
|
|
Reference in New Issue
Block a user