mirror of
https://github.com/rodamaral/lsnes.git
synced 2025-04-02 10:42:15 -04:00
24 lines
551 B
Makefile
24 lines
551 B
Makefile
OBJECTS=font.$(OBJECT_SUFFIX) wrapper.$(OBJECT_SUFFIX)
|
|
|
|
.PRECIOUS: %.$(OBJECT_SUFFIX)
|
|
|
|
__all__.$(OBJECT_SUFFIX): $(OBJECTS)
|
|
$(REALLD) -r -o $@ $^
|
|
touch __all__.ldflags
|
|
|
|
.PRECIOUS: font.$(OBJECT_SUFFIX) font.cpp
|
|
|
|
%.$(OBJECT_SUFFIX): %.cpp
|
|
$(REALCC) $(CFLAGS) -c -o $@ $< -I../../include
|
|
|
|
font.cpp : $(FONT_SRC)
|
|
echo "extern const char* font_hex_data; " >font.cpp
|
|
echo "const char* font_hex_data = " >>font.cpp
|
|
sed -E -f fonttransform.sed <$^ >>font.cpp
|
|
echo ";" >>font.cpp
|
|
|
|
precheck:
|
|
@true
|
|
|
|
clean:
|
|
rm -f *.$(OBJECT_SUFFIX) font.cpp *.ldflags
|