main.c: parse_argv(): pass argv pointer by reference
[glg-sh.git] / Makefile
blob41457640cec23ded6091f1034d0bee063dbe83b8
1 TARGET = sh
2 CC = gcc
3 CFLAGS = -O2 -Wall -Wextra -Werror -std=c99 -pedantic -pedantic-errors
4 CFLAGS += -Wno-unused-function -Wno-unused-but-set-variable
6 OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
8 $(TARGET): $(OBJS)
9 $(CC) $(CFLAGS) -o $(TARGET) $(OBJS)
11 %.o: %.c
12 $(CC) $(CFLAGS) -c $< -o $@
14 debug: CFLAGS += -DDEBUG
15 debug: $(TARGET)
17 clean:
18 rm -f *.o
19 rm -f $(TARGET)