blob: c85944284666497184672009e673d7e0ed2453f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|