mirror of
https://github.com/libretro/retroluxury.git
synced 2024-11-23 07:39:47 +00:00
added -fPIC to the makefile
This commit is contained in:
parent
3f173f528f
commit
b4214a649f
@ -1,40 +1,40 @@
|
||||
SOEXT=.dll
|
||||
TARGET=test$(SOEXT)
|
||||
OBJEXT=.o
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
#CCFLAGS=-Wall -O2 -I. -I../src
|
||||
CCFLAGS=-Wall -O0 -g -I. -I../src
|
||||
CXXFLAGS=$(CCFLAGS)
|
||||
LDFLAGS=-L../src
|
||||
LIBS=-lretroluxury
|
||||
|
||||
OBJS=libretro.o
|
||||
RES=res/smile.h res/sketch008.h res/bounce.h
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CCFLAGS) -c $< -o $@
|
||||
|
||||
%.h: %.png
|
||||
xxd -i $< | sed "s/unsigned/const unsigned/g" > $@
|
||||
|
||||
%.h: %.ogg
|
||||
xxd -i $< | sed "s/unsigned/const unsigned/g" > $@
|
||||
|
||||
%.h: %.wav
|
||||
xxd -i $< | sed "s/unsigned/const unsigned/g" > $@
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CC) -shared $(LDFLAGS) -o $@ $+ $(LIBS)
|
||||
|
||||
libretro.o: $(RES)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(OBJS) $(RES)
|
||||
|
||||
.PHONY: clean
|
||||
SOEXT=.dll
|
||||
TARGET=test$(SOEXT)
|
||||
OBJEXT=.o
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
#CCFLAGS=-Wall -O2 --std=c99 -I. -I../src -fPIC
|
||||
CCFLAGS=-Wall -O0 -g --std=c99 -I. -I../src -fPIC
|
||||
CXXFLAGS=$(CCFLAGS)
|
||||
LDFLAGS=-L../src
|
||||
LIBS=-lretroluxury
|
||||
|
||||
OBJS=libretro.o
|
||||
RES=res/smile.h res/sketch008.h res/bounce.h
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CCFLAGS) -c $< -o $@
|
||||
|
||||
%.h: %.png
|
||||
xxd -i $< | sed "s/unsigned/const unsigned/g" > $@
|
||||
|
||||
%.h: %.ogg
|
||||
xxd -i $< | sed "s/unsigned/const unsigned/g" > $@
|
||||
|
||||
%.h: %.wav
|
||||
xxd -i $< | sed "s/unsigned/const unsigned/g" > $@
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CC) -shared $(LDFLAGS) -o $@ $+ $(LIBS)
|
||||
|
||||
libretro.o: $(RES)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(OBJS) $(RES)
|
||||
|
||||
.PHONY: clean
|
||||
|
Loading…
Reference in New Issue
Block a user