This file is indexed.

/usr/lib/ats2-postiats-0.2.6/share/atsmake-post.mk is in ats2-lang 0.2.6-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#
# For building Makefiles for projects in ATS 
#

######
#
# Author: Hongwei Xi
# Author: Ian Denhardt
#
######
#
# HX: for convenience
#
PATSCC2=$(PATSCC) $(INCLUDE) $(INCLUDE_ATS)
#
######

ifdef MYTARGET
$(MYTARGET)_C_O := \
  $(patsubst %.c, %_c.o, $(SOURCES_C))
$(MYTARGET)_SATS_O := \
  $(patsubst %.sats, %_sats.o, $(SOURCES_SATS))
$(MYTARGET)_DATS_O := \
  $(patsubst %.dats, %_dats.o, $(SOURCES_DATS))
endif

######

ifdef MYTARGET
ifeq ($(strip $(MYTARGET)),MYTARGET)
else
all:: $(MYTARGET)
$(MYTARGET): \
  $($(MYTARGET)_C_O) \
  $($(MYTARGET)_SATS_O) \
  $($(MYTARGET)_DATS_O) ; \
  $(PATSCC) $(INCLUDE) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(EXTRAFLAGS)
cleanall:: ; $(RMF) $(MYTARGET)
endif # end of [ifeq]
endif # end of [ifdef]

######
#
# HX-2013-12-28:
# generating *_?ats.c files is mainly for debugging
#
ifdef MYCCRULE
else
%_sats.c: %.sats ; $(PATSCC) $(INCLUDE_ATS) -o $@ -ccats $<
%_dats.c: %.dats ; $(PATSCC) $(INCLUDE_ATS) -o $@ -ccats $<
endif
#
######
#
# For compiling ATS source directly
#
ifdef MYCCRULE
else
%_sats.o: %.sats ; \
  $(PATSCC) -cleanaft $(INCLUDE) $(INCLUDE_ATS) $(CFLAGS) -o $@ -c $<
%_dats.o: %.dats ; \
  $(PATSCC) -cleanaft $(INCLUDE) $(INCLUDE_ATS) $(MALLOCFLAG) $(CFLAGS) -o $@ -c $<
endif
#
######
#
# For compiling C code generated from ATS source
#
ifeq ($(strip $(MYCCRULE)),PORTABLE)
#
%_sats.o: %_sats.c ; $(CC) $(INCLUDE) $(CFLAGS) -o $@ -c $<
%_dats.o: %_dats.c ; $(CC) $(INCLUDE) $(MALLOCFLAG) $(CFLAGS) -o $@ -c $<
#
endif
#
######
#
# For generating portable C code
#
ifdef MYPORTDIR
#
$(MYPORTDIR)/Makefile: Makefile ; cp -f $< $@
#
$(MYPORTDIR)_SATS_C := \
  $(patsubst %.sats, $(MYPORTDIR)/%_sats.c, $(SOURCES_SATS))
$(MYPORTDIR)_DATS_C := \
  $(patsubst %.dats, $(MYPORTDIR)/%_dats.c, $(SOURCES_DATS))
#
$(MYPORTDIR):: $(MYPORTDIR)/Makefile
$(MYPORTDIR):: $($(MYPORTDIR)_SATS_C)
$(MYPORTDIR):: $($(MYPORTDIR)_DATS_C)
#
ifdef MYPORTCPP
else
$(MYPORTDIR)/%_sats.c: %.sats ; $(PATSOPT) $(INCLUDE_ATS) -o $@ -s $<
$(MYPORTDIR)/%_dats.c: %.dats ; $(PATSOPT) $(INCLUDE_ATS) -o $@ -d $<
endif
#
ifdef MYPORTCPP
$(MYPORTDIR)/%_sats.c: %.sats ; \
  $(PATSCC) -cleanaft -E $(INCLUDE) $(INCLUDE_ATS) $(CFLAGS) -o $@ $<
$(MYPORTDIR)/%_dats.c: %.dats ; \
  $(PATSCC) -cleanaft -E $(INCLUDE) $(INCLUDE_ATS) $(MALLOCFLAG) $(CFLAGS) -o $@ $<
endif
#
endif
#
######
#
-include .depend
#
depend:: ; $(RMF) .depend
#
ifeq ("$(strip $(SOURCES_SATS))","")
else
depend:: ; $(PATSOPT) --output-a .depend --depgen -s $(SOURCES_SATS)
endif
ifeq ("$(strip $(SOURCES_DATS))","")
else
depend:: ; $(PATSOPT) --output-a .depend --depgen -d $(SOURCES_DATS)
endif
#
######

RMF=rm -f

######

cleanats:: ; $(RMF) *~
cleanats:: ; $(RMF) *_?ats.o

######

clean: cleanats

######

cleanall:: cleanats
cleanall:: ; $(RMF) .depend

######

###### end of [atsmake-post.mk] ######