Init
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
debugus.o
|
||||
debugus
|
||||
27
Makefile
Normal file
27
Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
CC=gcc
|
||||
CFLAGS=
|
||||
INCFLAGS=
|
||||
LDFLAGS=
|
||||
SRCS=debugus.c
|
||||
OBJS=$(patsubst %.c,%.o,$(SRCS))
|
||||
|
||||
all: debugus .gitignore
|
||||
|
||||
.gitignore: $(OBJS) debugus
|
||||
@echo $^ | tr ' ' '\n' > .gitignore
|
||||
@echo "MK .gitignore"
|
||||
|
||||
debugus: $(OBJS)
|
||||
@$(CC) -o $@ $^ $(LDFLAGS)
|
||||
@echo "LD $^"
|
||||
|
||||
$(OBJS): $(SRCS)
|
||||
@$(CC) -c $(CFLAGS) $(INCFLAGS) -o $@ $<
|
||||
@echo "CC $<"
|
||||
|
||||
clean: $(OBJS) .gitignore
|
||||
@rm -f $^
|
||||
@echo "RM $^"
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
Reference in New Issue
Block a user