Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Makefile.working 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ARCH_FORMAT= coff-e1
  2. CC= e1-coff-gcc
  3. AS= e1-coff-as
  4. LD= e1-coff-ld
  5. SIZE= e1-coff-size
  6. AR= e1-coff-ar
  7. RANLIB= e1-coff-ranlib
  8. OBJCOPY=e1-coff-objcopy
  9. EXTRA_CFLAGS = -DEMBEDDED -DMAC_HW_ADDR_DRV="'H','Y','L','N','X','1'"
  10. BUILD_ROMS= $(ROMS)
  11. BUILD_COFFS= $(BIN)/cs89x0.coff
  12. #BUILD_COFFS= $(patsubst %img, %coff, $(IMGS))
  13. START= $(BIN)/start.o
  14. START16= $(BIN)/start.o
  15. #SRCS+= arch/e1/core/coff_loader.c
  16. SRCS+= arch/e1/core/e132_xs.c
  17. SRCS+= arch/e1/core/e1_timer.c
  18. SRCS+= arch/e1/core/longjmp.c
  19. SRCS+= arch/e1/core/memcmp.S
  20. SRCS+= arch/e1/core/memcpy.S
  21. SRCS+= arch/e1/core/memset.S
  22. SRCS+= arch/e1/core/setjmp.c
  23. SRCS+= arch/e1/core/strcmp.S
  24. SRCS+= arch/e1/core/start.S
  25. ROMLIMIT:=3276800
  26. include $(BIN)/Roms
  27. hyperstone: $(BUILD_COFFS)
  28. coff: $(BUILD_COFFS)
  29. BOBJS+= $(BIN)/e1_timer.o
  30. BOBJS+= $(BIN)/memcmp.o $(BIN)/memcpy.o $(BIN)/memset.o
  31. BOBJS+= $(BIN)/setjmp.o $(BIN)/longjmp.o
  32. BOBJS+= $(BIN)/e132_xs.o
  33. # Utilities
  34. $(BIN)/nrv2b: util/nrv2b.c
  35. $(HOST_CC) -O2 -DENCODE -DDECODE -DMAIN -DVERBOSE -DNDEBUG -DBITSIZE=32 -DENDIAN=0 -o $@ $<
  36. # Pattern Rules
  37. # General for compiling/assembly source files
  38. $(BIN)/cs89x0.o: drivers/net/cs89x0.c $(MAKEDEPS)
  39. $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ -c $<
  40. # With the current tools we have problem with the compilation
  41. # of the vsprintf file when the -O2 is selected. So we compile
  42. # the aforemntioned file with -O1 !!!
  43. $(BIN)/vsprintf.o: core/vsprintf.c $(MAKEDEPS)
  44. $(CC) $(CFLAGS) -O1 -o $@ -c $<
  45. $(BIN)/%.o: arch/e1/core/%.c $(MAKEDEPS)
  46. $(CC) $(CFLAGS) -o $@ -c $<
  47. $(BIN)/%.o: arch/e1/core/%.S $(MAKEDEPS)
  48. $(CPP) $(CFLAGS) -D ASSEMBLY $< | $(AS) $(ASFLAGS) -o $@
  49. $(BIN)/%.coff: $(BIN)/%.tmp $(MAKEDEPS)
  50. mv $< $(BIN)/etherboot.coff