| 1 |
# $Id: descrip.mms 2 2001-11-02 04:53:43Z darren $ |
| 2 |
# |
| 3 |
# Makefile for building CTAGS under OpenVMS |
| 4 |
# |
| 5 |
# Maintained by by Zoltan Arpadffy <[email protected]> |
| 6 |
# |
| 7 |
# Edit the lines in the Configuration section below to select. |
| 8 |
|
| 9 |
###################################################################### |
| 10 |
# Configuration section. |
| 11 |
###################################################################### |
| 12 |
# Compiler selection. |
| 13 |
# Comment out if you use the VAXC compiler |
| 14 |
###################################################################### |
| 15 |
DECC = YES |
| 16 |
|
| 17 |
###################################################################### |
| 18 |
# Uncomment if want a debug version. Resulting executable is DCTAGS.EXE |
| 19 |
###################################################################### |
| 20 |
# DEBUG = YES |
| 21 |
|
| 22 |
###################################################################### |
| 23 |
# End of configuration section. |
| 24 |
# |
| 25 |
# Please, do not change anything below without programming experience. |
| 26 |
###################################################################### |
| 27 |
|
| 28 |
CC = cc |
| 29 |
|
| 30 |
.IFDEF DECC |
| 31 |
CC_DEF = $(CC)/decc/prefix=all |
| 32 |
.ELSE |
| 33 |
CC_DEF = $(CC) |
| 34 |
.ENDIF |
| 35 |
|
| 36 |
LD_DEF = link |
| 37 |
|
| 38 |
.IFDEF DEBUG |
| 39 |
TARGET = dctags.exe |
| 40 |
CFLAGS = /debug/noopt/list/cross_reference/include=[] |
| 41 |
LDFLAGS = /debug |
| 42 |
.ELSE |
| 43 |
TARGET = ctags.exe |
| 44 |
CFLAGS = /include=[] |
| 45 |
LDFLAGS = |
| 46 |
.ENDIF |
| 47 |
|
| 48 |
OBJEXT = obj |
| 49 |
|
| 50 |
.SUFFIXES : .obj .c |
| 51 |
|
| 52 |
.INCLUDE source.mak |
| 53 |
|
| 54 |
EXTRA_OBJS = argproc.obj |
| 55 |
|
| 56 |
all : $(TARGET) |
| 57 |
! $@ |
| 58 |
|
| 59 |
.c.obj : |
| 60 |
$(CC_DEF) $(CFLAGS) $< |
| 61 |
|
| 62 |
$(TARGET) : $(OBJECTS) $(EXTRA_OBJS) |
| 63 |
$(LD_DEF) $(LDFLAGS) /exe=$(TARGET) $+ |
| 64 |
|
| 65 |
clean : |
| 66 |
-@ if F$SEARCH("*.obj") .NES. "" then delete/noconfirm/nolog *.obj.* |
| 67 |
-@ if F$SEARCH("*.exe") .NES. "" then delete/noconfirm/nolog *.exe.* |
| 68 |
-@ if F$SEARCH("config.h") .NES. "" then delete/noconfirm/nolog config.h.* |