Guest User

Untitled

a guest
Feb 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. TARGET = Openxum
  2.  
  3. OBJS = main.o
  4.  
  5.  
  6.  
  7. CPP = $(CROSS_COMPILE)g++
  8.  
  9. CXXFLAGS = -fPIC -Wall -Os -g
  10.  
  11.  
  12.  
  13. ifeq ($(CROSS_COMPILE), )
  14.  
  15. CXXFLAGS += -D_PC_LINUX_
  16.  
  17. else
  18.  
  19. CXXFLAGS += -D_GPH_CAANOO_ -fno-common -march=armv5te -mtune=arm9tdmi -mapcs -msoft-float
  20.  
  21. endif
  22.  
  23.  
  24.  
  25. ifeq ($(CROSS_COMPILE), )
  26.  
  27. BIN = ./$(TARGET).out
  28.  
  29. else
  30.  
  31. BIN = ./$(TARGET).gpe
  32.  
  33. endif
  34.  
  35.  
  36.  
  37.  
  38.  
  39. INCS = -I/usr/include/SDL
  40.  
  41. INCS += -I/usr/include/SDL
  42.  
  43.  
  44.  
  45. LIBS = -L/usr/include/SDL
  46.  
  47. LIBS += -L/usr/include/SDL
  48.  
  49.  
  50.  
  51.  
  52.  
  53. ifeq ($(CROSS_COMPILE), )
  54.  
  55. LIBS = -L/usr/include/SDL
  56.  
  57. LIBS += -L/usr/include/SDL
  58.  
  59. endif
  60.  
  61.  
  62.  
  63.  
  64.  
  65. LIBS += `sdl-config --cflags --libs`
  66.  
  67.  
  68.  
  69. $(BIN):$(OBJS)
  70.  
  71. $(CPP) -o $@ $(OBJS) $(LIBS)
  72.  
  73. rm -f $(OBJS)
  74.  
  75.  
  76.  
  77. target: $(BIN)
  78.  
  79.  
  80.  
  81. clean:
  82.  
  83. rm -f $(OBJS) $(BIN)
  84.  
  85.  
  86.  
  87. .cpp.o:
  88.  
  89. $(CPP) $(INCS) $(CFLAGS) -c $< -o $@
Add Comment
Please, Sign In to add comment