All pastes #274514 Raw Edit

Sans nom

public text v1 · immutable
·published 2006-12-10 19:43 UTC
rendered paste body
CPP = g++

CPPFLAGS =-g -D_REENTRANT -D_THREAD_SAFE -I./

LDFLAGS = -lSDL -lGL -lGLU

OFLAG = -o

EXE = test

SDL_CFLAGS := $(shell sdl-config --cflags)

SDL_LDFLAGS := $(shell sdl-config --libs)

.SUFFIXES : .o .cpp

.cpp.o :

     $(CPP) $(CPPFLAGS) $(SDL_CFLAGS) -Wall -c $<



all:

    test



test: main.o DrawGeometry.o Extensions.o

    $(CPP) $(OFLAG) $(EXE) main.o DrawGeometry.o Extensions.o $(LDFLAGS) $(SDL_LDFLAGS)

    

    

main.o: main.cpp

DrawGeometry.o: DrawGeometry.cpp

Extensions.o: Extensions.cpp