mirror of
https://github.com/pnx/m16vm
synced 2026-06-16 03:44:55 +02:00
Makefile: add rule for building libm16
This commit is contained in:
parent
aca8d7937e
commit
f2d54204ca
2 changed files with 6 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
*.o
|
||||
*.a
|
||||
m16vm
|
||||
/as
|
||||
|
|
|
|||
5
Makefile
5
Makefile
|
|
@ -13,9 +13,14 @@ m16vm : src/vm.o src/cpu.o src/mm.o src/instr_decode.o src/syscall.o src/program
|
|||
as : src/as/as.o src/as/parser.o src/as/lexer.o src/as/instr_encode.o src/as/error.o
|
||||
$(LD) $(LDFLAGS) -o $@ $^
|
||||
|
||||
lib/libm16.a : lib/src/vector.o
|
||||
$(AR) rcs $@ $^
|
||||
|
||||
clean :
|
||||
$(RM) src/*.o
|
||||
$(RM) src/as/*.o
|
||||
$(RM) lib/*.o
|
||||
$(RM) lib/*.a
|
||||
|
||||
distclean : clean
|
||||
$(RM) $(PROGRAMS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue