Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 360 Bytes
TARGET := chua_gen
CFLAGS := -Wall -Wextra -O2
LIBS := -lglut -lGL -lm
SOURCES := $(wildcard *.c)
OBJECTS := $(SOURCES:.c=.o)
all: $(TARGET)
$(TARGET) : $(OBJECTS)
$(CC) $(CFLAGS) $^ -o $@ $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c $^ -o $@
.PNONY: clean run
clean:
@rm -rf $(TARGET) $(OBJECTS) *~ semantic.cache *TAGS *BROWSE
run: $(TARGET)
./$(TARGET)
Something went wrong with that request. Please try again.