diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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 |