back to scratko.xyz
summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8a49831ce9c54d49ce6372a903e0ff3dc671f412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SRCMODULES = dynamic_array.c queue.c lexical_analysis.c shell.c
OBJMODULES = $(SRCMODULES:.c=.o)
CC = gcc
CFLAGS = -Wall -g -c

all: shell-V

%.o: %%.h
	$(CC) $(CFLAGS) $< -o $@

shell-V: $(OBJMODULES)
	$(CC) $(LIBS) $^ -o $@

-include deps.mk

deps.mk: $(SRCMODULES)
	$(CC) -MM $^ > $@