Skip to content

Commit

Permalink
add static-library and install targets to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
darius committed Nov 25, 2009
1 parent 4753a46 commit 0816ebd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Makefile
@@ -1,15 +1,24 @@
CFLAGS := -Wall -g2 -O2
LDFLAGS := -lncurses

all: runtusl
all: runtusl libtusl.a

install: tusl.h libtusl.a tuslrc.ts
install tusl.h /usr/local/include
install libtusl.a /usr/local/lib
-mkdir /usr/local/share/tusl
install tuslrc.ts /usr/local/share/tusl

runtusl: runtusl.o tusl.o
runtusl.o: runtusl.c tusl.h

libtusl.a: tusl.o
ar -rs libtusl.a $<

tusl.o: tusl.c tusl.h

runcurst: runcurst.o tusl.o
runcurst.o: runcurst.c tusl.h

clean:
rm -f *.o runtusl runcurst
rm -f *.o *.a runtusl runcurst

0 comments on commit 0816ebd

Please sign in to comment.