Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added "make install" and top level Makefile

git-svn-id: http://svn.clifford.at/embedvm/trunk@42 9d21f824-f436-4d2e-9c88-bb158a3a422f
  • Loading branch information...
commit aee1a540cf6e3d39a11e39bb8e8f93f0201394d3 1 parent 78234e5
clifford authored
Showing with 40 additions and 0 deletions.
  1. +28 −0 Makefile
  2. +5 −0 tools/Makefile
  3. +7 −0 vmsrc/Makefile
View
28 Makefile
@@ -0,0 +1,28 @@
+#
+# EmbedVM - Embedded Virtual Machine for uC Applications
+#
+# Copyright (C) 2011 Clifford Wolf <clifford@clifford.at>
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+
+all:
+ $(MAKE) -C tools all
+ $(MAKE) -C vmsrc all
+install:
+ $(MAKE) -C tools install
+ $(MAKE) -C vmsrc install
+clean:
+ $(MAKE) -C tools clean
+ $(MAKE) -C vmsrc clean
+
View
5 tools/Makefile
@@ -19,6 +19,8 @@
CC = gcc
CFLAGS += -MD -Wall -Wextra -Os -ggdb
+all: evmcomp
+
evmcomp: evmcomp.o codegen.o output.o insn.o parser.tab.o lex.yy.o
parser.tab.c parser.tab.h: parser.y
@@ -27,6 +29,9 @@ parser.tab.c parser.tab.h: parser.y
lex.yy.c: lexer.l
flex lexer.l
+install: evmcomp
+ install -TD evmcomp /usr/local/bin/evmcomp
+
clean:
rm -f evmcomp *.d *.o core
rm -f parser.tab.c parser.tab.h parser.output lex.yy.c
View
7 vmsrc/Makefile
@@ -19,8 +19,15 @@
CC = gcc
CFLAGS += -MD -Wall -Wextra -Os -ggdb
+all: evmdemo
+
evmdemo: evmdemo.o embedvm.o
+install: evmdemo
+ install -TD evmdemo /usr/local/bin/evmdemo
+ install -TD -m0644 embedvm.c /usr/local/share/embedvm/embedvm.c
+ install -TD -m0644 embedvm.h /usr/local/share/embedvm/embedvm.h
+
clean:
rm -f evmdemo evmdemo.core *.d *.o core
Please sign in to comment.
Something went wrong with that request. Please try again.