Makefile for blkpack/blkunpack

This commit is contained in:
Carsten Strotmann 2021-04-11 22:39:30 +02:00
parent 7618770961
commit 9f58844e7d
2 changed files with 20 additions and 0 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
*.log *.log
/.DS_Store /.DS_Store
*~ *~
/tools/blkpack
/tools/blkunpack

18
tools/Makefile Normal file
View File

@ -0,0 +1,18 @@
BLKPACK_TGT = blkpack
BLKUNPACK_TGT = blkunpack
TARGETS = $(BLKUNPACK_TGT) $(BLKPACK_TGT)
all: $(TARGETS)
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
$(BLKPACK_TGT): $(BLKPACK_TGT).c
$(BLKUNPACK_TGT): $(BLKUNPACK_TGT).c
$(TARGETS):
$(CC) $(CFLAGS) $@.c -o $@
.PHONY: clean
clean:
rm -f $(TARGETS) $(OBJS)