Permalink
Browse files

added Makefile and LICENSE files

  • Loading branch information...
1 parent 092ff14 commit c573d724645ac6e38a89e5f9bb2d6502c26f0b11 @najoshi committed Feb 9, 2011
Showing with 56 additions and 0 deletions.
  1. +19 −0 LICENSE
  2. +37 −0 Makefile
View
19 LICENSE
@@ -0,0 +1,19 @@
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use, copy,
+modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
View
@@ -0,0 +1,37 @@
+PROGRAM_NAME = sickle
+VERSION = 0.93
+CC = gcc
+CFLAGS = -Wall -pedantic -DVERSION=$(VERSION)
+DEBUG = -g
+OPT = -O3
+ARCHIVE = $(PROGRAM_NAME)_$(VERSION)
+
+# Mac OS X - Linux may need different linking
+LDFLAGS = -lz
+
+default: build
+
+trim_single.o: src/trim_single.c src/sickle.h src/kseq.h
+ $(CC) $(CFLAGS) -c $?
+
+trim_paired.o: src/trim_paired.c src/sickle.h src/kseq.h
+ $(CC) $(CFLAGS) -c $?
+
+sickle.o: src/sickle.c src/sickle.h
+ $(CC) $(CFLAGS) -c $?
+
+clean:
+ rm -rf *.o ./sickle
+
+distclean: clean
+ rm -rf *.tar.gz
+
+dist:
+ tar -zcf $(ARCHIVE).tar.gz src Makefile
+
+build: trim_single.o trim_paired.o sickle.o
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OPT) $? -o sickle
+
+debug:
+ $(MAKE) build "CFLAGS=-Wall -pedantic -g -DDEBUG"
+

0 comments on commit c573d72

Please sign in to comment.