Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated .gitignore

  • Loading branch information...
commit fbdfe93d9ed76230c065ddcba5e8aa38d7bca20e 1 parent 777d67d
@jakogut authored
View
2  .gitignore
@@ -1,6 +1,4 @@
*.o
-tinyvm
-tinyvm-debug
profile
valgrind*
cachegrind*
View
10 GNUmakefile
@@ -17,6 +17,7 @@ BIN_DIR = bin
LIB_DIR = lib
INC_DIR = include
PROGRAM_DIR = programs
+INSTALL_PREFIX = /usr/
DEBUG = no
PROFILE = no
@@ -41,9 +42,9 @@ CFLAGS += $(OPTIMIZATION)
all: libtvm tvmi tdb
install: libtvm tvmi
- cp -f bin/tvmi /usr/bin/
- cp -rf include/tvm /usr/include/
- cp -f lib/libtvm* /usr/lib/
+ cp -f $(BIN_DIR)/tvmi $(INSTALL_PREFIX)/bin/
+ cp -rf $(INC_DIR)/tvm $(INSTALL_PREFIX)/include/
+ cp -f $(LIB_DIR)/libtvm* $(INSTALL_PREFIX)/lib/
uninstall:
rm -rf /usr/bin/tvmi
@@ -51,16 +52,13 @@ uninstall:
rm -rf /usr/lib/libtvm*
libtvm: $(LIBTVM_OBJECTS)
- mkdir -p $(LIB_DIR)
ar rcs $(LIB_DIR)/libtvm.a $(LIBTVM_OBJECTS)
# Build the TVM interpreter
tvmi: libtvm
- mkdir -p $(BIN_DIR)
$(CC) $(LFLAGS) tvmi.c -ltvm -o $(BIN_DIR)/tvmi
tdb: libtvm $(TDB_OBJECTS)
- mkdir -p $(BIN_DIR)
$(CC) $(LFLAGS) $(TDB_OBJECTS) -ltvm -o $(BIN_DIR)/tdb
%.o: %.c
View
3  bin/.gitignore
@@ -0,0 +1,3 @@
+tvmi*
+tdb*
+core*
View
2  lib/.gitignore
@@ -0,0 +1,2 @@
+*.a
+*.so
View
1  libtvm/.gitignore
@@ -0,0 +1 @@
+*.o
Please sign in to comment.
Something went wrong with that request. Please try again.