summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-01-06 16:56:04 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-01-06 16:56:04 +0000
commit5e173f639d10c44567e3dc2c53d459a0b102fb84 (patch)
treebce192aedda45c4d2260ce29344ccad46b37358c /makefile
parentc245c9a32687edd068bd9eacb16e966c3b6dd8c8 (diff)
downloadlibpencil-releases/0.0.1.tar.gz
libpencil-releases/0.0.1.tar.bz2
Port to core buildsystemreleases/0.0.1
svn path=/trunk/pencil/; revision=9793
Diffstat (limited to 'makefile')
-rw-r--r--makefile50
1 files changed, 0 insertions, 50 deletions
diff --git a/makefile b/makefile
deleted file mode 100644
index b31e1e6..0000000
--- a/makefile
+++ /dev/null
@@ -1,50 +0,0 @@
-#
-# This file is part of Pencil
-# Licensed under the MIT License,
-# http://www.opensource.org/licenses/mit-license
-# Copyright 2005 James Bursa <james@semichrome.net>
-#
-
-SOURCE = pencil_build.c pencil_save.c
-HDRS = pencil.h pencil_internal.h
-
-GCCSDK_INSTALL_CROSSBIN ?= /home/riscos/cross/bin
-GCCSDK_INSTALL_ENV ?= /home/riscos/env
-
-.PHONY: all install clean
-
-CC := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc)
-AR := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*ar)
-CFLAGS = -std=c99 -O3 -W -Wall -Wundef -Wpointer-arith -Wcast-qual \
- -Wcast-align -Wwrite-strings -Wstrict-prototypes \
- -Wmissing-prototypes -Wmissing-declarations \
- -Wnested-externs -Winline -Wno-cast-align \
- -mpoke-function-name -I$(GCCSDK_INSTALL_ENV)/include
-ARFLAGS = cr
-LIBS = -L$(GCCSDK_INSTALL_ENV)/lib -lOSLib32 -lrufl
-INSTALL = $(GCCSDK_INSTALL_ENV)/ro-install
-ifneq (,$(findstring arm-unknown-riscos-gcc,$(CC)))
- EXEEXT=,e1f
-else
- EXEEXT=,ff8
-endif
-
-OBJS = $(SOURCE:.c=.o)
-
-all: libpencil.a pencil_test$(EXEEXT)
-
-libpencil.a: $(OBJS)
- $(AR) $(ARFLAGS) $@ $(OBJS)
-
-pencil_test$(EXEEXT): pencil_test.c libpencil.a
- $(CC) $(CFLAGS) $(LIBS) -o $@ $^
-
-install: libpencil.a
- $(INSTALL) libpencil.a $(GCCSDK_INSTALL_ENV)/lib/libpencil.a
- $(INSTALL) pencil.h $(GCCSDK_INSTALL_ENV)/include/pencil.h
-
-clean:
- -rm *.o libpencil.a pencil_test$(EXEEXT)
-
-.c.o: $(HDRS)
- $(CC) $(CFLAGS) -c -o $@ $<