| version 1.3 | | version 1.4 |
|---|
| | |
| | | |
| CPPFLAGS= $(CFLAGS) | | CPPFLAGS= $(CFLAGS) |
| | | |
| all: $(SUBDIRS) $(OUTPUT) $(MISCOUTPUT) | | all: $(SUBDIRS) $(OUTPUT) $(MISCOUTPUT) $(MISCOBJECTS) |
| | | |
| $(SUBDIRS): dummy | | $(SUBDIRS): dummy |
| make -C $@ | | make -C $@ |
| | |
| #use dep.dep instead of .depend for dos compatibility. | | #use dep.dep instead of .depend for dos compatibility. |
| DEPFILE=dep.dep | | DEPFILE=dep.dep |
| ifdef OUTPUT | | ifdef OUTPUT |
| DEPOBJ2=$(OBJECTS:.$(OBJ)=.dep2) | | DEPOBJ2=$(OBJECTS:.$(OBJ)=.dep2) $(MISCOBJECTS:.$(OBJ)=.dep2) |
| endif | | endif |
| | | |
| #we don't actually create .dep2 files, but we need some way to let make do its | | #we don't actually create .dep2 files, but we need some way to let make do its |
| | |
| %.dep2: %.c | | %.dep2: %.c |
| $(CC) $(CFLAGS) $(E_CFLAGS) -MM $< >> $(DEPFILE) | | $(CC) $(CFLAGS) $(E_CFLAGS) -MM $< >> $(DEPFILE) |
| %.dep2: %.cpp | | %.dep2: %.cpp |
| $(CC) $(CFLAGS) $(E_CFLAGS) -MM $< >> $(DEPFILE) | | $(CXX) $(CFLAGS) $(E_CFLAGS) -MM $< >> $(DEPFILE) |
| #dunno if this is the "right" way to make null rules, but it seems to work. | | #dunno if this is the "right" way to make null rules, but it seems to work. |
| %.dep2: %.asm | | %.dep2: %.asm |
| - | | - |