diff --git a/Makefile b/Makefile index 0e49f0a..4460895 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ include $(CURDIR)/Makefile.cfg # DEDUCED VARS ALLOBJ = $(SRC:%=$(OBJDIR)/%.o) +ALLINC = $(INC:%=$(INCDIR)/%.h) # RULES ## Make it all (default rule) @@ -18,7 +19,7 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.s $(AS) -c -o $@ $< ## Make an object file out of a C source file -$(OBJDIR)/%.o: $(SRCDIR)/%.c +$(OBJDIR)/%.o: $(SRCDIR)/%.c $(ALLINC) $(CC) -c -o $@ $< $(CFLAGS) ## Make the ELF file diff --git a/Makefile.cfg b/Makefile.cfg index ccbff85..34eeb42 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -35,7 +35,8 @@ SENDR = UsbConnector SRC = crt0 Sound4Calc syscall # INCLUDES -INC = dispbios endian filebios fxlib keybios syscall timer \ +INC = dispbios endian filebios fxlib keybios timer \ + stdlib syscall \ Sound4Calc # END OF FILE