view src/ploki/MakeSkel @ 9554:23f43464694e

<Zarutian> le/rn Frams\xc3\xb3knarflokkurinn/A, now defunct, political party in Iceland. Like its sister party Sj\xc3\xa1lfst\xc3\xa6\xc3\xb0isflokkurinn it is named by the antonym of what it is. (The name means the Progressive Party but they have nearly always been highly regressive). Think dumb Hill-Billies in ill fitting suits and you get their constiuents.
author HackBot
date Sun, 30 Oct 2016 14:33:24 +0000
parents ac0403686959
children
line wrap: on
line source

# vi: set ft=make:
PREFIX = /usr/local
INSTDIR = $(PREFIX)/bin

CC = gcc
#CC = cc

#COPT = -DDEBUGGING -g
COPT = -g -O2
#COPT = -xO4 -xalias_level=std -xbuiltin=%all -xdepend -xinline=%auto -xlibmil -xtarget=native
#COPT = -O
#COPT =

LDOPT =
#LDOPT = -s

CPP = $(CC) -E
#CPP = cpp

DEPEND = $(CPP) -MM
#DEPEND = $(CC) -xM1

CFLAGS = $(COPT) -W -Wall -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -std=gnu9x -pedantic -fstrict-aliasing -pipe
#CFLAGS = $(COPT) -W -Wall -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -std=gnu99 -pedantic -fstrict-aliasing -pipe
#CFLAGS = $(COPT) -Xc
#CFLAGS = $(COPT)

LDFLAGS = $(LDOPT) -lm

ECHO = echo
CAT = cat
CP = cp
RMF = rm -f
TAR = tar
CTAGS = ctags
#CTAGS = ctags --langmap=c:.c.h
ZIP = bzip2
ZIP_EXT = .bz2
BASENAME = basename
PWD = pwd

# # # # #

OBJ = IO.o Str.o atechit.o compile.o deparse.o expr.o hang.o hash.o inc.o \
      kork.o list.o main.o mars.o match.o op.o opt.o parse.o pp.o random.o \
      re.o run.o strhash.o strutil.o sub.o text.o transmogrify.o val.o \
      variable.o venus.o version.o xmalloc.o zz.o

all: tags ploki

tags: *.c *.h
	$(CTAGS) *.c *.h

distclean: clean
	$(RMF) core examples/core a.out
clean:
	$(RMF) *.o ploki
realclean: clean
	$(RMF) *.depend Makefile

remake: clean all

ploki: $(OBJ)
	$(CC) -o ploki $(OBJ) $(LDFLAGS)

install: ploki
	$(CP) ploki '$(INSTDIR)/'

version.c: version.c.in VERSION
	$(CP) version.c.in version.c
	$(ECHO) '"'"`$(CAT) VERSION`"'";' >>version.c

########################################################################