forgot to change extension
This commit is contained in:
parent
46a0969a2a
commit
88d2c402fb
5
Makefile
5
Makefile
|
@ -2,6 +2,7 @@ CC=
|
||||||
MKDIR=
|
MKDIR=
|
||||||
PCFLAGS=
|
PCFLAGS=
|
||||||
PLFLAGS=
|
PLFLAGS=
|
||||||
|
LIBEXT=
|
||||||
LFLAGS=-shared -g -ggdb
|
LFLAGS=-shared -g -ggdb
|
||||||
CFLAGS=--std=c99 -g -ggdb -Wall
|
CFLAGS=--std=c99 -g -ggdb -Wall
|
||||||
|
|
||||||
|
@ -9,15 +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
|
||||||
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
|
||||||
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.dll bin/lt.o $(PLFLAGS) -liconv
|
$(CC) $(LFLAGS) -o bin/LoveToken.$(LIBEXT) bin/lt.o $(PLFLAGS) -liconv
|
||||||
|
|
Reference in New Issue
Block a user