Edit

kc3-lang/SDL/Makefile.minimal

Branch :

  • Show log

    Commit

  • Author : Edward Rudd
    Date : 2015-02-10 16:28:56
    Hash : b88ca1b4
    Message : the last parameter of XChangeProperty is the number of elements.. and when the element format is 32.. the element is "long" so we have 5 long elements here. Yes this seems confusing as on mac+linux Long is either 32 or 64bits depending on the architecture, but this is how the X11 protocol is defined. Thus 5 is the correct value for the nelts here. Not 5 or 10 depending on the architecture. More info on the confusion https://bugs.freedesktop.org/show_bug.cgi?id=16802

  • Makefile.minimal
  • # Makefile to build the SDL library
    
    INCLUDE = -I./include
    CFLAGS  = -g -O2 $(INCLUDE)
    AR	= ar
    RANLIB	= ranlib
    
    TARGET  = libSDL.a
    SOURCES = \
    	src/*.c \
    	src/audio/*.c \
    	src/audio/dummy/*.c \
    	src/cpuinfo/*.c \
    	src/events/*.c \
    	src/file/*.c \
    	src/haptic/*.c \
    	src/haptic/dummy/*.c \
    	src/joystick/*.c \
    	src/joystick/dummy/*.c \
    	src/loadso/dummy/*.c \
    	src/power/*.c \
    	src/filesystem/dummy/*.c \
    	src/render/*.c \
    	src/render/software/*.c \
    	src/stdlib/*.c \
    	src/thread/*.c \
    	src/thread/generic/*.c \
    	src/timer/*.c \
    	src/timer/dummy/*.c \
    	src/video/*.c \
    	src/video/dummy/*.c \
    
    OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
    
    all: $(TARGET)
    
    $(TARGET): $(OBJECTS)
    	$(AR) crv $@ $^
    	$(RANLIB) $@
    
    clean:
    	rm -f $(TARGET) $(OBJECTS)