This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.config/.old/nvim_0.4.4/templates/makefile.template

29 lines
525 B
Plaintext
Raw Normal View History

2020-11-10 14:48:19 +01:00
######################################################################
# @author : {{NAME}} ({{EMAIL}})
# @file : {{FILE}}
# @license : {{LICENSE}}
# @created : {{TIMESTAMP}}
######################################################################
IDIR =./include
CC=gcc
CFLAGS=-I$(IDIR)
ODIR=obj
LIBS=
_OBJ = main.o {{CURSOR}}
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
main: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
.PHONY: clean
clean:
rm -f $(ODIR)/*.o