From f401289e371a76ff0dbaea40f7f94f7b85c4b2bd Mon Sep 17 00:00:00 2001 From: banana Date: Fri, 22 Mar 2024 13:52:05 -0700 Subject: Initial commit --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c859442 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +.RECIPEPREFIX = > + +CC = gcc + +CFLAGS = -I$(INCDIR) + +INCDIR = inc +OBJDIR = obj +SRCDIR = src + +DEP = $(INCDIR)/tga.h $(INCDIR)/upc.h $(INCDIR)/num.h +OBJ = $(OBJDIR)/main.o $(OBJDIR)/tga.o $(OBJDIR)/upc.o # $(OBJDIR)/cli.o + +$(OBJDIR)/%.o: $(SRCDIR)/%.c $(DEPS) +> $(CC) -c -o $@ $< $(CFLAGS) + +upc: $(OBJ) +> $(CC) -o $@ $^ $(CFLAGS) + +.PHONY: clean + +clean: +> rm -f $(OBJDIR)/*.o ./*.tga upc -- cgit v1.2.3