Fixed little Makefile dependency

This commit is contained in:
Thomas Touhey 2016-05-15 15:03:51 +02:00
parent 05f9fb05c1
commit e422fdbced
2 changed files with 4 additions and 2 deletions

View File

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

View File

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