"Tommy F. Lewis" wrote: > (I'd like to do the equivalent of a Unix Makefile--is that possible?) Of course. It's called "make". For example, the Gnu make in the DJGPP package works just fine in any DOS window on anything from Windows 95 through Windows 2000 Professional. > Or, do I have to make one giant .asm (and #include the .inc files), name > it the same as the project to build a .hex file? God forbid. For example, you can build Olin's HAL project (see http://www.embedinc.com/pic/) with the following Makefile, with perhaps some adjustments in the paths to the tools, depending on where you installed them. -- Dave Tweed ============================================================================= # Embed/src/hal/Makefile # Embed, Inc. tools PREPIC = ../../com/prepic # Microchip tools ASM = "c:/Program Files/MPLAB/MPASMWIN" LINK = "c:/Program Files/MPLAB/MPLINK" /k "../pic" # Other tools RM = del HAL_OBJS = hal_strt.o hal_ad.o hal_eyes.o hal_init.o hal_intr.o hal_main.o \ hal_port.o hal_rand.o hal_soun.o hal_s09.o hal_s16.o hal_s22.o hal_s35.o \ owl.o howl.o pop.o pop2.o # Embed's preprocessor %.asm: %.aspic $(PREPIC) $< $@ %.inc: %.ins.aspic $(PREPIC) $< $@ # Assemble %.o: %.asm $(ASM) /c- /q /o $@ $< # Link hal.hex: $(HAL_OBJS) echo "FILES $(HAL_OBJS)" >temp.lkr $(LINK) p16f876m.lkr temp.lkr /m hal.map /o $@ # Cleanup clean: $(RM) *.ERR $(RM) *.LST $(RM) temp.lkr realclean: clean $(RM) *.asm $(RM) *.inc $(RM) *.O $(RM) *.map $(RM) *.cod $(RM) *.hex # Additional source dependencies hal_ad.o: hal.inc hallib.inc hal_eyes.o: hal.inc hallib.inc hal_init.o: hal.inc hallib.inc hal_intr.o: hal.inc hallib.inc hal_main.o: hal.inc hallib.inc hal_port.o: hal.inc hallib.inc hal_rand.o: hal.inc hallib.inc hal_s09.o: hallib.inc hal_s16.o: hallib.inc hal_s22.o: hallib.inc hal_s35.o: hallib.inc hal_soun.o: hal.inc hallib.inc hal_strt.o: hal.inc hallib.inc howl.o: hal.inc hallib.inc owl.o: hal.inc hallib.inc pop.o: hal.inc hallib.inc pop2.o: hal.inc hallib.inc ============================================================================= -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics