SRC = thbgm_patch.c th08_04_fix.c th08_12_fix.c
TARGET = $(SRC:%.c=%)
EXE = $(SRC:%.c=%.exe)

CC      = gcc
CFLAGS  = -g -Wall -std=gnu89 -pedantic -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare

.SUFFIXES: .exe

all: $(TARGET)

.c.o:
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<

.o:
	$(CC) $(CFLAGS) $(LIBS) $(LDFLAGS) $^ -o $@


clean:
	rm -f $(TARGET) $(EXE) *.o *~

