1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-06-01 05:41:27 +00:00

rk65c02 is now a shared library.

This commit is contained in:
Radosław Kujawa 2017-01-16 22:56:07 +01:00
parent b446b08271
commit f298eaade0

View File

@ -1,15 +1,15 @@
OBJS=rk65c02.o bus.o
EXEC=rk65c02
LDFLAGS=
CFLAGS=-Wall
SO=librk65c02.so
LDFLAGS=-shared
CFLAGS=-Wall -fpic
$(EXEC) : $(OBJS)
$(CC) -o $(EXEC) $(LDFLAGS) $(OBJS)
$(SO) : $(OBJS)
$(CC) -o $(SO) $(LDFLAGS) $(OBJS)
%.o : %.c %.h
$(CC) $(CFLAGS) -c $<
clean :
rm -f $(OBJS)
rm -f $(EXEC)
rm -f $(SO)