24 lines
624 B
Makefile
24 lines
624 B
Makefile
BDIR := bin
|
|
|
|
PROJ := FindPatterns
|
|
FILES := findpat
|
|
OBJS := $(patsubst %,$(BDIR)/%.o,$(FILES))
|
|
SRCS := $(patsubst %,%.c,$(FILES))
|
|
H := $(patsubst %,%.h,$(FILES))
|
|
|
|
CC := gcc
|
|
OF := -Wall -O3 -fasm -fomit-frame-pointer -ffast-math -funroll-loops -fasm -fomit-frame-pointer -ffast-math -funroll-loops -pedantic -ansi
|
|
CF := -Wall -O3 -fasm -fomit-frame-pointer -ffast-math -funroll-loops -fasm -fomit-frame-pointer -ffast-math -funroll-loops -pedantic -ansi
|
|
|
|
default: $(BDIR)/$(PROJ)
|
|
|
|
$(BDIR)/$(PROJ): $(OBJS)
|
|
$(CC) $(OF) $(CF) $^ -o $@
|
|
|
|
$(BDIR)/%.o: %.c
|
|
$(CC) $(OF) -c $< -o $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
-rm $(OBJS)
|