OSDN Git Service

renamed Makefile
authorwww <www@dev.minakoe.jp>
Tue, 22 Jun 2010 00:40:45 +0000 (09:40 +0900)
committerwww <www@dev.minakoe.jp>
Tue, 22 Jun 2010 00:40:45 +0000 (09:40 +0900)
Makefile [new file with mode: 0755]

diff --git a/Makefile b/Makefile
new file mode 100755 (executable)
index 0000000..fb3875c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,42 @@
+.PHONY: all
+all: lib1stclass.a
+
+lib1stclass.a: host2ip.o rmkdir.o safe_strcat.o safe_strncat.o is_num.o itoa.o remove_path.o remove_special_char.o lib1stclass.h
+       ar rvs lib1stclass.a host2ip.o itoa.o rmkdir.o safe_strcat.o safe_strncat.o is_num.o remove_path.o remove_special_char.o;
+       ranlib lib1stclass.a;
+
+host2ip.o: host2ip.c
+       gcc -Wall -c host2ip.c;
+
+itoa.o: itoa.c
+       gcc -Wall -c itoa.c
+
+remove_special_char.o: remove_special_char.c;
+       gcc -Wall -c remove_special_char.c;
+
+remove_path.o: remove_path.c
+       gcc -Wall -c remove_path.c;
+
+rmkdir.o: rmkdir.c
+       gcc -Wall -c rmkdir.c;
+
+safe_strcat.o: safe_strcat.c
+       gcc -Wall -c safe_strcat.c;
+
+safe_strncat.o: safe_strncat.c
+       gcc -Wall -c safe_strncat.c;
+
+is_num.o: is_num.c
+       gcc -Wall -c is_num.c;
+
+.PHONY: install
+install:
+       mkdir -p /usr/local/lib;
+       cp lib1stclass.a /usr/local/lib;
+       cp lib1stclass.h /usr/local/include;
+
+.PHONY: clean
+clean:
+       rm *.o -f *.o;
+       rm lib1stclass.a -f lib1stclass.a;
+