Restructuring make, adding automatic "make dep" support.
This commit is contained in:
parent
a8b4d21a65
commit
baf89c9d63
1 changed files with 8 additions and 2 deletions
|
@ -31,8 +31,7 @@ HFILES = mat3.h mat3defs.h mat3err.h
|
||||||
OFILES = $(CFILES:.c=.o)
|
OFILES = $(CFILES:.c=.o)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -g -Wall
|
CFLAGS = $(FG_CFLAGS)
|
||||||
# CFLAGS = -O2 -Wall
|
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
|
|
||||||
|
@ -50,6 +49,9 @@ $(TARGET): $(OFILES) $(HFILES)
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
|
dep:
|
||||||
|
$(CC) -MM *.c > depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(TARGET) lib*.a *~ core
|
rm -f *.o $(TARGET) lib*.a *~ core
|
||||||
|
|
||||||
|
@ -58,10 +60,14 @@ clean:
|
||||||
# Secondary Targets
|
# Secondary Targets
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include depend
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.4 1997/06/26 19:08:38 curt
|
||||||
|
# Restructuring make, adding automatic "make dep" support.
|
||||||
|
#
|
||||||
# Revision 1.3 1997/06/25 15:39:49 curt
|
# Revision 1.3 1997/06/25 15:39:49 curt
|
||||||
# Minor changes to compile with rsxnt/win32.
|
# Minor changes to compile with rsxnt/win32.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue