forgot to change extension
This commit is contained in:
parent
46a0969a2a
commit
88d2c402fb
17
Makefile
17
Makefile
|
@ -2,22 +2,25 @@ CC=
|
|||
MKDIR=
|
||||
PCFLAGS=
|
||||
PLFLAGS=
|
||||
LIBEXT=
|
||||
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
|
||||
CC+=mingw32-gcc
|
||||
MKDIR+=mkdir -p
|
||||
PLFLAGS+=-Wl,--out-implib,bin/libLoveToken.a
|
||||
LIBEXT+=dll
|
||||
else
|
||||
ifeq ($(shell uname -s), Linux)
|
||||
CC += gcc
|
||||
MKDIR += mkdir -p
|
||||
PCFLAGS += -fPIC
|
||||
CC+=gcc
|
||||
MKDIR+=mkdir -p
|
||||
PCFLAGS+=-fPIC
|
||||
LIBEXT+=so
|
||||
endif
|
||||
endif
|
||||
|
||||
all:
|
||||
$(MKDIR) bin
|
||||
$(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