gitignore added

This commit is contained in:
2020-11-12 16:57:46 +01:00
parent 790ccfbfe9
commit 362e89396a
2 changed files with 7 additions and 2 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
build
pubsubc.a
*~
.*~
.*.sw?

View File

@ -18,7 +18,7 @@ VPATH=src
OBJS=$(addprefix $(OBJDIR)/,pubsubc.o client.o) OBJS=$(addprefix $(OBJDIR)/,pubsubc.o client.o)
all: $(OBJS) all: $(OBJS)
$(AR) rcs pubsub.a $^ $(AR) rcs pubsubc.a $^
$(OBJDIR)/%.o: %.c $(OBJDIR)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@
@ -30,4 +30,4 @@ $(OBJDIR):
.PHONY: clean .PHONY: clean
clean: clean:
-rm -rf $(OBJDIR) -rm -rf $(OBJDIR) pubsubc.a