diff options
| author | Enno Boland (Gottox) <gottox@s01.de> | 2008-06-18 08:00:18 +0200 |
|---|---|---|
| committer | Enno Boland (Gottox) <gottox@s01.de> | 2008-06-18 08:00:18 +0200 |
| commit | b2712c1480271f92a7c2667b6be398c33973edf7 (patch) | |
| tree | 88122848c26310ae1c86633c0eaaf352fb65fcc9 /Makefile | |
| parent | 66219165d078ff5c1f859548b5fa2b2cf0b49449 (diff) | |
turning smu into a library, thanks arg.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -1,12 +1,14 @@ -# smu - simple markup +# libsmu - simple markup # (c) 2007, 2008 Enno Boland include config.mk -SRC = smu.c -OBJ = ${SRC:.c=.o} +SRC = smu.c +LIBSRC = libsmu.c +OBJ = ${SRC:.c=.o} +LIBOBJ = ${LIBSRC:.c=.o} -all: options smu +all: options libsmu.a smu options: @echo smu build options: @@ -20,19 +22,23 @@ options: ${OBJ}: config.mk +libsmu.a: ${LIBOBJ} + @echo AR $@ + @${AR} $@ ${LIBOBJ} + smu: ${OBJ} @echo LD $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${CC} -o $@ ${OBJ} ${LDFLAGS} -L. -lsmu clean: @echo cleaning - @rm -f smu ${OBJ} smu-${VERSION}.tar.gz + @rm -f smu ${OBJ} ${LIBOBJ} smu-${VERSION}.tar.gz dist: clean @echo creating dist tarball @mkdir -p smu-${VERSION} @cp -R LICENSE Makefile config.mk \ - smu.1 ${SRC} smu-${VERSION} + smu.1 ${SRC} ${LIBSRC} smu.h smu-${VERSION} @tar -cf smu-${VERSION}.tar smu-${VERSION} @gzip smu-${VERSION}.tar @rm -rf smu-${VERSION} |