mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-11-21 14:31:21 +00:00
Makefile for blkpack/blkunpack
This commit is contained in:
parent
7618770961
commit
9f58844e7d
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@
|
|||||||
*.log
|
*.log
|
||||||
/.DS_Store
|
/.DS_Store
|
||||||
*~
|
*~
|
||||||
|
/tools/blkpack
|
||||||
|
/tools/blkunpack
|
||||||
|
18
tools/Makefile
Normal file
18
tools/Makefile
Normal 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)
|
Loading…
Reference in New Issue
Block a user