1
0
mirror of https://github.com/ggambetta/libz80.git synced 2025-04-18 18:44:02 +03:00
libz80/Makefile
Dustin Rawlings 7b0882e607 Replace gcc in makefiles with $(CC)
This commit allows other compilers besides gcc.

N.B. the "-ansi" flag is not supported in tcc, so this flag is
replaced with "-std=c89", which produces the same behavior as
"-ansi" in gcc and does not cause problems with tcc.
2020-07-22 19:02:22 -10:00

26 lines
373 B
Makefile

SOURCES = z80.c
FLAGS = -fPIC -Wall -std=c89 -g
force: clean all
all: libz80.so
libz80.so: z80.h $(OBJS)
cd codegen && make opcodes
$(CC) $(FLAGS) -shared -o libz80.so $(SOURCES)
install:
install -m 666 libz80.so /usr/lib
install -m 666 z80.h /usr/include
clean:
rm -f *.o *.so core
cd codegen && make clean
realclean: clean
rm -rf doc
doc: *.h *.c
doxygen