vote/Makefile

27 lines
715 B
Makefile
Raw Normal View History

2021-06-11 19:20:16 -04:00
PROJ := badass
PROJw := $(PROJ).exe
FILES := badass
BDIR := bin
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 := -ansi
CCw := /usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc
OFw := -Wall -O3 -fasm -fomit-frame-pointer -ffast-math -funroll-loops -fasm -fomit-frame-pointer -ffast-math -funroll-loops -pedantic -mwindows
default: $(BDIR)/$(PROJ)
$(BDIR)/$(PROJ): $(OBJS)
$(CC) $(OF) $(CF) $^ -o $@
$(BDIR)/%.o: %.c
$(CC) $(OF) -c $< -o $@
.PHONY: clean
clean:
-rm $(OBJS)