Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add static-library and install targets to makefile
- Loading branch information
darius
committed
Nov 25, 2009
1 parent
4753a46
commit 0816ebd
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |