Refactored makefiles

This commit is contained in:
François Autin
2023-04-05 17:05:55 +02:00
parent 01ac29160b
commit 968137cc1b
9 changed files with 23 additions and 39 deletions

View File

@ -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