Subversion Repositories programming

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
115 ira 1
SHELL		= /bin/sh
2
CC			= g++
3
 
4
TARGET		= rb
5
SRCS		= rbuffer.cpp RingBuffer.cpp
6
OBJS		= $(SRCS:.c=.o)
7
HDRS		= 
8
 
9
ANAL		= -Wall -Wmissing-prototypes -Wshadow
10
CFLAGS		= -mtune=i686 -O2 -fomit-frame-pointer -pipe
11
LIBS		=
12
 
13
PURIFY		= /usr/local/bin/purify
14
 
15
all:	$(TARGET)
16
 
17
purify:	purify-$(TARGET)
18
 
19
$(OBJS):	$(HDRS)
20
 
21
$(TARGET):	$(OBJS)
22
	$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS)
23
 
24
purify-$(TARGET):	$(OBJS)
25
	$(PURIFY) $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS)
26
 
27
clean:
28
	-rm *.o $(TARGET)
29