[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
help for my "makefile"
From: |
sunsail |
Subject: |
help for my "makefile" |
Date: |
Thu, 31 Oct 2002 11:42:06 +0200 |
below my makefile.and i use cygwin
is there any problem with this makefile
i use flex and bison
regards
************************************************
CC = gcc -g
SRCS = cross.c mutate.c reprod.c select.c input.c times.c chromo.c \
init.c screens.c reinit.c tt0.c newprint.c y.tab.c lex.yy.c
OBJS = cross.o mutate.o reprod.o select.o input.o times.o chromo.o \
init.o screens.o reinit.o tt0.o newprint.o y.tab.o lex.yy.o
CFLAGS= -g
LDFLAGS= -lcurses -ll -lm
LIBS= -lf -lb
gatt: $(OBJS) gatt.h
$(CC) -o gatt $(OBJS) $(LDFLAGS)
# leave the following lines in if you have lex/yacc installed
flex.yy.c: main.l gatt.h
flex main.l
y.tab.c: main.y gatt.h
bison main.y
# if you do not have lex,yacc comment out above lines and use the following
# commands instead
# flex.yy.o: flex.yy.c gatt.h
# $(CC) -c $(CFLAGS) flex.yy.c
# y.tab.o: y.tab.c gatt.h
# $(CC) -c $(CFLAGS) y.tab.c
clean:
rm -rf *.o lex.yy.c y.tab.* y.output gatt
cross.o: cross.c gatt.h
$(CC) -c $(CFLAGS) cross.c
mutate.o: mutate.c gatt.h
$(CC) -c $(CFLAGS) mutate.c
reprod.o: reprod.c gatt.h
$(CC) -c $(CFLAGS) reprod.c
select.o: select.c gatt.h
$(CC) -c $(CFLAGS) select.c
reinit.o: reinit.c gatt.h
$(CC) -c $(CFLAGS) reinit.c
tt0.o : tt0.c tt0.h gatt.h
$(CC) -c $(CFLAGS) tt0.c
input.o: input.c gatt.h
$(CC) -c $(CFLAGS) input.c
newprint.o: newprint.c gatt.h
$(CC) -c $(CFLAGS) newprint.c
times.o: times.c
$(CC) -c $(CFLAGS) times.c
chromo.o: chromo.c gatt.h
$(CC) -c $(CFLAGS) chromo.c
screens.o: screens.c gatt.h
$(CC) -c $(CFLAGS) screens.c
init.o: init.c gatt.h
$(CC) -c $(CFLAGS) init.c
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- help for my "makefile",
sunsail <=