pmc/Makefile
changeset 4 236f8f747073
child 42 83b8151b966d
equal deleted inserted replaced
3:820ed7fb9314 4:236f8f747073
       
     1 #!/bin/bash
       
     2 
       
     3 CC=g++
       
     4 LD=ld
       
     5 CFLAGS=-Wall -O2 -ansi 
       
     6 LDFLAGS=-lSDL
       
     7 INCLUDE=include
       
     8 CONFIG=-DSTEP=2
       
     9 OBJECTS=pmc.o cube.o main.o
       
    10 
       
    11 .SUFFIXES: .cc
       
    12 
       
    13 .cc.o: 
       
    14 	$(CC) -c $(CFLAGS) -I$(INCLUDE) $(CONFIG) $<
       
    15 
       
    16 all: pmc 
       
    17 
       
    18 
       
    19 pmc: $(OBJECTS)
       
    20 	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@
       
    21 
       
    22 .PHONY: clean
       
    23 
       
    24 clean:
       
    25 	rm -f *.[oae];
       
    26 	rm -f *~;
       
    27 	rm -f pmc glcube
       
    28