Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add Makefile

  • Loading branch information...
commit 36b8393457059584df394193f479af2313183706 1 parent 87ef808
@popovb authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 src/Makefile
View
27 src/Makefile
@@ -0,0 +1,27 @@
+SHELL= /bin/sh
+
+VPATH = .
+
+MYLIB = libcfg.a
+
+WFLAGS = -W -Wall -Wextra
+IFLAGS = -I.
+CXXFLAGS = $(IFLAGS) $(WFLAGS)
+
+obj = \
+cfg.o \
+cfgparser.o
+
+OBJS = $(obj)
+
+.PHONY: all
+
+all: $(MYLIB)
+
+$(MYLIB): $(OBJS)
+ ar ru $(MYLIB) $(OBJS)
+
+clean:
+ -@$(RM) *.o
+ @find . -name *.o -delete
+ -@$(RM) $(MYLIB)
Please sign in to comment.
Something went wrong with that request. Please try again.