obsolete.computer

vermiculate-standalone/Makefile

File Type: text/x-makefile

CC = gcc
LD = gcc

CFLAGS = -Wall -pipe -DVERMICULATE_STANDALONE -DGETTIMEOFDAY_TWO_ARGS
LFLAGS = $(CFLAGS) -L/usr/lib/ -lX11 -lm

SOURCES = $(wildcard *.c)
OBJECTS = $(SOURCES:.c=.o)

DEBUG = no
PROFILE = no
PEDANTIC = no
OPTIMIZATION = -O3

ifeq ($(DEBUG), yes)
    CFLAGS += -g
    OPTIMIZATION = -O0
endif

ifeq ($(PROFILE), yes)
    CFLAGS += -pg
endif

CFLAGS += $(OPTIMIZATION)

all: vermiculate

vermiculate: $(OBJECTS)
    $(CC) $(OBJECTS) $(LFLAGS) -o vermiculate

%.o: %.c
    $(CC) $(CFLAGS) -c $< -o $@

clean:
    rm -rf *.o vermiculate

rebuild: clean all

.PHONY : clean
.SILENT : clean

Meta