/usr/lib/ats2-postiats-0.2.9/share/atsmake-pre.mk is in ats2-lang 0.2.9-1.
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 | #
# For building Makefiles for projects in ATS
#
######
#
# Author: Hongwei Xi (githwxi)
# Author: Ian Denhardt (zenhack.net)
#
######
#
CC=gcc
#
######
ifdef PATSHOME
PATSHOMEQ="$(PATSHOME)"
else
ifdef ATSHOME
PATSHOMEQ="$(ATSHOME)"
else
PATSHOMEQ="/usr/local/lib/ats2-postiats"
endif
endif
######
ifdef PATSHOMERELOC
PATSHOMERELOCQ="$(PATSHOMERELOC)"
else
ifdef ATSHOMERELOC
PATSHOMERELOCQ="$(ATSHOMERELOC)"
else
PATSHOMERELOCQ="/usr/local/lib/ats2-postiats"
endif
endif
######
#
PATSCC=$(PATSHOMEQ)/bin/patscc
PATSOPT=$(PATSHOMEQ)/bin/patsopt
PATSLIB=$(PATSHOMEQ)/ccomp/atslib/lib
#
# PATSLIB32=$(PATSHOMEQ)/ccomp/atslib/lib32
# PATSLIB64=$(PATSHOMEQ)/ccomp/atslib/lib64
#
######
#
ifdef \
PATSCCOMP
else
export PATSCCOMP = $(CC) -std=c99 -D_XOPEN_SOURCE
endif
#
######
PATS2XHTML=$(PATSHOMEQ)/bin/pats2xhtml
######
INCLUDE += -I$(PATSHOMEQ)
INCLUDE += -I$(PATSHOMEQ)/ccomp/runtime
######
CFLAGS += -D_GNU_SOURCE
######
LDFLAGS += -L$(PATSLIB)
# LDFLAGS += -L$(PATSLIB32)
# LDFLAGS += -L$(PATSLIB64)
LDFLAGS += -latslib
######
EXTRAFLAGS =
######
MALLOCFLAG := -DATS_MEMALLOC_LIBC
######
ifdef PATSHOMERELOCQ
INCLUDE += -I$(PATSHOMERELOCQ)/contrib
INCLUDE_ATS += -IATS $(PATSHOMERELOCQ)/contrib
endif
######
SOURCES_C=
SOURCES_SATS=
SOURCES_DATS=
######
all::
cleanats::
cleanall::
######
###### end of [atsmake-pre.mk] ######
|