Revision a044f8c1a6c049da9f398bfb9a063fcd5bc09512 authored by brianharvey on 11 August 2008, 21:48:58 UTC, committed by brianharvey on 11 August 2008, 21:48:58 UTC
git-svn-id: https://svn.code.sf.net/p/ucblogo/code@144 fc4ef4ee-df3e-0410-84de-fb01f5d6c4f7
1 parent 165c13f
makefile.old
CC = gcc
CFLAGS = -g -O -DHAVE_WX -I/usr/X11R6/include -O0
CXX = g++
CXXFLAGS = -DHAVE_WX -I/usr/local/lib/wx/include/mac-ansi-release-static-2.6 -I/usr/local/include/wx-2.6 -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA
LDFLAGS =
LIBS = -lSM -lICE -L/usr/X11R6/lib -lm -L/usr/local/lib -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa -framework System /usr/local/lib/libwx_mac_xrc-2.6.a /usr/local/lib/libwx_mac_qa-2.6.a /usr/local/lib/libwx_mac_html-2.6.a /usr/local/lib/libwx_mac_adv-2.6.a /usr/local/lib/libwx_mac_core-2.6.a /usr/local/lib/libwx_base_carbon_xml-2.6.a /usr/local/lib/libwx_base_carbon_net-2.6.a /usr/local/lib/libwx_base_carbon-2.6.a -framework WebKit -lwxexpat-2.6 -lwxtiff-2.6 -lwxjpeg-2.6 -lwxpng-2.6 -lz -lpthread -liconv -ltermcap -lX11
prefix = /usr/local
BINDIR = $(prefix)/bin
LIBLOC = $(prefix)/lib/logo
LINKER = $(CXX)
# LIBLOC = `pwd`
OBJS = coms.o error.o eval.o files.o graphics.o init.o intern.o \
libloc.o lists.o logodata.o main.o math.o mem.o paren.o parse.o \
print.o wrksp.o nographics.o actions.o states.o utils.o vt52_states.o keytrans.o wxMain.o wxTerminal.o wxTurtleGraphics.o gterm.o TextEditor.o wxterm.o
SRCS = coms.c error.c eval.c files.c graphics.c init.c intern.c \
libloc.c lists.c logodata.c main.c math.c mem.c paren.c parse.c \
print.c wrksp.c nographics.c actions.cpp states.cpp utils.cpp vt52_states.cpp keytrans.cpp wxMain.cpp wxTerminal.cpp wxTurtleGraphics.cpp gterm.cpp TextEditor.cpp wxterm.c
HDRS = globals.h logo.h xgraphics.h
all: logo logolib/Messages helpfiles helpfiles/HELPCONTENTS logo-mode
mem.o: mem.c
$(CC) $(CFLAGS) -O0 -c mem.c
logo: $(OBJS)
$(LINKER) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o logo
tags: $(SRCS)
ctags --format=1 -N $(SRCS) $(HDRS)
# ctags -t $(SRCS) $(HDRS)
libloc.c:
echo 'char *libloc="'$(LIBLOC)'/logolib";' > libloc.c
echo 'char *helploc="'$(LIBLOC)'/helpfiles";' >> libloc.c
echo 'char *cslsloc="'$(LIBLOC)'/csls";' >> libloc.c
echo 'char *temploc="/tmp";' >> libloc.c
echo 'char *separator="/";' >> libloc.c
logolib/Messages: makelib Messages
chmod +x makelib
./makelib
cp -f Messages logolib
helpfiles:
mkdir helpfiles
helpfiles/HELPCONTENTS: makehelp usermanual
./makehelp
sort helptemp | pr -5 -t -w80 >> helpfiles/HELPCONTENTS
rm helptemp
makehelp: makehelp.c
$(CC) -o makehelp makehelp.c
clean:
rm -f *.o libloc.c
cd emacs; $(MAKE) clean
ship:
rm -f config.h config.cache config.log config.status
rm -f makefile makehelp logo *.o libloc.c
cd emacs; $(MAKE) ship
cd docs; $(MAKE) ship
install: all
for d in $(BINDIR) $(LIBLOC) $(LIBLOC)/logolib $(LIBLOC)/helpfiles $(LIBLOC)/csls; do [ -d $$d ] || mkdir -p $$d || exit 1; done
cp logo $(BINDIR)/.
cp -f logolib/* $(LIBLOC)/logolib/.
cp -f helpfiles/* $(LIBLOC)/helpfiles/.
cp -f csls/* $(LIBLOC)/csls/.
(cd emacs; prefix=$(prefix) LIBLOC=$(LIBLOC) BINDIR=$(BINDIR) $(MAKE) install)
(cd docs; prefix=$(prefix) LIBLOC=$(LIBLOC) BINDIR=$(BINDIR) $(MAKE) install)
# prefix=$(prefix); LIBLOC=$(LIBLOC); BINDIR=$(BINDIR); export prefix LIBLOC BINDIR; cd emacs; $(MAKE) install
logo-mode:
(cd emacs; prefix=$(prefix) LIBLOC=$(LIBLOC) BINDIR=$(BINDIR) $(MAKE))
# @prefix=$(prefix); LIBLOC=$(LIBLOC); BINDIR=$(BINDIR); export prefix LIBLOC BINDIR; cd emacs; $(MAKE)
make-docs:
(cd docs; prefix=$(prefix) LIBLOC=$(LIBLOC) $(MAKE) all)
mac: all
mkdir -p UCBLogo.app
mkdir -p UCBLogo.app/Contents
cp Info.plist UCBLogo.app/Contents/
cp PkgInfo UCBLogo.app/Contents/
cp pbdevelopment.plist UCBLogo.app/Contents/
mkdir -p UCBLogo.app/Contents/Resources
cp -r csls UCBLogo.app/Contents/Resources/
cp -r helpfiles UCBLogo.app/Contents/Resources/
cp -r logolib UCBLogo.app/Contents/Resources/
mkdir -p UCBLogo.app/Contents/MacOS/
cp logo UCBLogo.app/Contents/MacOS/UCBLogo
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...