mirror of
https://github.com/rkujawa/rk65c02.git
synced 2025-01-10 18:29:53 +00:00
rk65c02 is now a shared library.
This commit is contained in:
parent
b446b08271
commit
f298eaade0
12
src/Makefile
12
src/Makefile
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user