Files
GRA-Project/Implementierung/Makefile
T

27 lines
459 B
Makefile

CC = gcc
CFLAGS = -Wall -Wextra -g -O3 -std=c17 -msse4.1
DEPFLAGS = -MMD -MP
LDFLAGS = -lm
TARGET = project
SRCS = $(wildcard *.c)
OBJS = $(SRCS:.c=.o)
DEPS = $(SRCS:.c=.d)
.PHONY: all clean run
all: $(TARGET)
run: all
./project -s -2.0,-1.5 -d 1200,900 -r 0.003 -n 256 -o tricorn.bmp -C
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) $(DEPFLAGS) -c $< -o $@
-include $(DEPS)
clean:
rm -f $(OBJS) $(DEPS) $(TARGET)