breakout

A simple breakout clone created with C and SDL2
git clone git://git.hellocld.com/breakout
Log | Files | Refs

Makefile (473B)


      1 CC = gcc
      2 CFLAGS = -g -Wall -pedantic `sdl2-config --cflags --libs`
      3 SDL = `sdl2-config --cflags --libs`
      4 
      5 default: dirs ./src/main.c
      6 	cp -r assets ./bin/assets
      7 	$(CC) $(CFLAGS) ./src/main.c -o ./bin/breakout $(SDL)
      8 
      9 
     10 dirs:
     11 	if [ ! -d ./bin ] ; then mkdir bin ; fi
     12 	if [ ! -d ./assets ] ; then mkdir assets ; fi
     13 	if [ ! -d ./assets/gfx ] ; then mkdir assets/gfx ; fi
     14 	if [ ! -d ./assets/sfx ] ; then mkdir assets/sfx ; fi
     15 
     16 clean:
     17 	if [ -d ./bin ] ; then rm -rf ./bin/* ; fi
     18 
     19