Guest User

Untitled

a guest
Oct 31st, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.75 KB | None | 0 0
  1. SOURCES     = mem_manager.c tree.c queue.c exception.c scheduler.c ssi.c p2test.0.2.c
  2. CC          = mipsel-linux-gcc
  3. CCT         = mipsel-linux-ld
  4. CFLAGS      = -Wall
  5. MDIR        = $(UMPATH)/src/support
  6. TFLAGS      = -T $(MDIR)/elf32ltsmip.h.umpscore.x $(MDIR)/crtso.o $(MDIR)/libumps.o
  7. HDIR        = include/
  8. HDIR_UMPS   = uMPS_include/
  9. INCPATH     = -I$(HDIR) -I$(HDIR_UMPS) -I$(MDIR)/e
  10. DEPH        = $(HDIR)/listx.h \
  11.               $(HDIR)/types11.h \
  12.               $(HDIR)/const11.h
  13. OBJECTS     = mem_manager.o tree.o queue.o exception.o scheduler.o ssi.o p2test.0.2.o
  14.  
  15. build: $(OBJECTS) $(DEPH) $(EXEC).o
  16.        $(CCT) $(TFLAGS) $(OBJECTS) $(EXEC).o -o release/kernel
  17.        
  18. rebuild: clean build link
  19.  
  20. %.o: %.c $(DEPH)
  21.     $(CC) $(CFLAGS) $(INCPATH) -c $<
  22.  
  23. link:
  24.     umps2-elf2umps -k release/kernel
  25.  
  26. clean:
  27.     rm -f *.o release/*
Add Comment
Please, Sign In to add comment