Skip to content

Commit

Permalink
Updated .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jakogut committed Sep 4, 2011
1 parent 777d67d commit fbdfe93
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .gitignore
@@ -1,6 +1,4 @@
*.o *.o
tinyvm
tinyvm-debug
profile profile
valgrind* valgrind*
cachegrind* cachegrind*
Expand Down
10 changes: 4 additions & 6 deletions GNUmakefile
Expand Up @@ -17,6 +17,7 @@ BIN_DIR = bin
LIB_DIR = lib LIB_DIR = lib
INC_DIR = include INC_DIR = include
PROGRAM_DIR = programs PROGRAM_DIR = programs
INSTALL_PREFIX = /usr/


DEBUG = no DEBUG = no
PROFILE = no PROFILE = no
Expand All @@ -41,26 +42,23 @@ CFLAGS += $(OPTIMIZATION)
all: libtvm tvmi tdb all: libtvm tvmi tdb


install: libtvm tvmi install: libtvm tvmi
cp -f bin/tvmi /usr/bin/ cp -f $(BIN_DIR)/tvmi $(INSTALL_PREFIX)/bin/
cp -rf include/tvm /usr/include/ cp -rf $(INC_DIR)/tvm $(INSTALL_PREFIX)/include/
cp -f lib/libtvm* /usr/lib/ cp -f $(LIB_DIR)/libtvm* $(INSTALL_PREFIX)/lib/


uninstall: uninstall:
rm -rf /usr/bin/tvmi rm -rf /usr/bin/tvmi
rm -rf /usr/include/tvmi rm -rf /usr/include/tvmi
rm -rf /usr/lib/libtvm* rm -rf /usr/lib/libtvm*


libtvm: $(LIBTVM_OBJECTS) libtvm: $(LIBTVM_OBJECTS)
mkdir -p $(LIB_DIR)
ar rcs $(LIB_DIR)/libtvm.a $(LIBTVM_OBJECTS) ar rcs $(LIB_DIR)/libtvm.a $(LIBTVM_OBJECTS)


# Build the TVM interpreter # Build the TVM interpreter
tvmi: libtvm tvmi: libtvm
mkdir -p $(BIN_DIR)
$(CC) $(LFLAGS) tvmi.c -ltvm -o $(BIN_DIR)/tvmi $(CC) $(LFLAGS) tvmi.c -ltvm -o $(BIN_DIR)/tvmi


tdb: libtvm $(TDB_OBJECTS) tdb: libtvm $(TDB_OBJECTS)
mkdir -p $(BIN_DIR)
$(CC) $(LFLAGS) $(TDB_OBJECTS) -ltvm -o $(BIN_DIR)/tdb $(CC) $(LFLAGS) $(TDB_OBJECTS) -ltvm -o $(BIN_DIR)/tdb


%.o: %.c %.o: %.c
Expand Down
3 changes: 3 additions & 0 deletions bin/.gitignore
@@ -0,0 +1,3 @@
tvmi*
tdb*
core*
2 changes: 2 additions & 0 deletions lib/.gitignore
@@ -0,0 +1,2 @@
*.a
*.so
1 change: 1 addition & 0 deletions libtvm/.gitignore
@@ -0,0 +1 @@
*.o

0 comments on commit fbdfe93

Please sign in to comment.