Refactored makefiles
This commit is contained in:
@ -8,11 +8,6 @@ dumps:
|
||||
make dumps -C jump_instructions/
|
||||
make dumps -C simple_arithmetics/
|
||||
|
||||
tests:
|
||||
make tests -C boolean_logic/
|
||||
make tests -C jump_instructions/
|
||||
make tests -C simple_arithmetics/
|
||||
|
||||
clean:
|
||||
$(MAKE) clean -C boolean_logic/
|
||||
$(MAKE) clean -C jump_instructions/
|
||||
|
@ -1,17 +1,14 @@
|
||||
|
||||
PROGRAMS = comparisons if switch
|
||||
PROGRAMS = comparisons.guac if.guac switch.guac
|
||||
TOPDIR = ../../..
|
||||
include $(TOPDIR)/Makefile.rules
|
||||
|
||||
build: $(PROGRAMS)
|
||||
|
||||
dumps: comparisons.dump if.dump switch.dump
|
||||
|
||||
tests: comparisons.guac if.guac switch.guac
|
||||
|
||||
TOPDIR = ../../..
|
||||
include $(TOPDIR)/Makefile.rules
|
||||
|
||||
clean:
|
||||
$(RM) comparisons comparisons.o if if.o
|
||||
$(RM) *.o *.guac
|
||||
|
||||
# Dependances
|
||||
$(PROGRAMS): % : $(USERLIB)/sys.o $(USERLIB)/libnachos.o %.o
|
||||
$(PROGRAMS): %.guac : $(USERLIB)/sys.o $(USERLIB)/libnachos.o %.o
|
@ -1,15 +1,12 @@
|
||||
PROGRAMS = jump ret
|
||||
PROGRAMS = jump.guac ret.guac
|
||||
TOPDIR = ../../..
|
||||
include $(TOPDIR)/Makefile.rules
|
||||
|
||||
build: $(PROGRAMS)
|
||||
|
||||
dumps: jump.dump ret.dump
|
||||
|
||||
tests: jump.guac ret.guac
|
||||
|
||||
clean:
|
||||
$(RM) jump jump.o ret ret.o
|
||||
$(RM) *.o *.guac
|
||||
|
||||
TOPDIR = ../../..
|
||||
include $(TOPDIR)/Makefile.rules
|
||||
|
||||
$(PROGRAMS): % : $(USERLIB)/sys.o $(USERLIB)/libnachos.o %.o
|
||||
$(PROGRAMS): %.guac : $(USERLIB)/sys.o $(USERLIB)/libnachos.o %.o
|
@ -1,16 +1,12 @@
|
||||
|
||||
PROGRAMS = unsigned_addition unsigned_division unsigned_multiplication unsigned_substraction
|
||||
PROGRAMS = unsigned_addition.guac unsigned_division.guac unsigned_multiplication.guac unsigned_substraction.guac
|
||||
TOPDIR = ../../..
|
||||
include $(TOPDIR)/Makefile.rules
|
||||
|
||||
build: $(PROGRAMS)
|
||||
|
||||
dumps: unsigned_addition.dump unsigned_division.dump unsigned_multiplication.dump unsigned_substraction.dump
|
||||
|
||||
tests: unsigned_addition.guac unsigned_division.guac unsigned_multiplication.guac unsigned_substraction.guac
|
||||
|
||||
clean:
|
||||
$(RM) unsigned_addition unsigned_addition.o unsigned_division unsigned_division.o unsigned_multiplication unsigned_multiplication.o unsigned_substraction unsigned_substraction.o
|
||||
$(RM) *.o *.guac
|
||||
|
||||
TOPDIR = ../../..
|
||||
include $(TOPDIR)/Makefile.rules
|
||||
|
||||
$(PROGRAMS): % : $(USERLIB)/sys.o $(USERLIB)/libnachos.o %.o
|
||||
$(PROGRAMS): %.guac : $(USERLIB)/sys.o $(USERLIB)/libnachos.o %.o
|
Reference in New Issue
Block a user