Subversion Repositories programming

Rev

Rev 100 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
77 irasnyd 1
#
2
# Makefile for readconf test program
3
#
4
# Add -DSYSV to CFLAGS for System V machines (e.g. Solaris 2.x).
5
# Add -DSTRCASECMP for systems that don't have it.
6
#
7
 
8
SHELL		= /bin/sh
9
CC			= gcc
10
 
11
TARGET		= proj1
12
SRCS		= Project1.c
13
OBJS		= $(SRCS:.c=.o)
14
HDRS		= 
15
 
16
ANAL		= -Wall -Wmissing-prototypes -Wshadow
112 ira 17
CFLAGS		= -march=athlon-xp -O3 -fomit-frame-pointer -pipe -fforce-addr -fforce-mem -fweb -ftracer -ffast-math -funit-at-a-time -DFAST_MEMCPY
77 irasnyd 18
LIBS		=
19
 
20
PURIFY		= /usr/local/bin/purify
21
 
22
all:	$(TARGET)
23
 
24
purify:	purify-$(TARGET)
25
 
26
$(OBJS):	$(HDRS)
27
 
28
$(TARGET):	$(OBJS)
29
	$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS)
30
 
31
purify-$(TARGET):	$(OBJS)
32
	$(PURIFY) $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS)
33
 
34
clean:
35
	-rm *.o $(TARGET)
36