12345678910111213141516171819202122 |
- TARGET = glmouselook
- CC = gcc
- CFLAGS =
- LIBS = -lX11 -lGL -lGLU -lm
- PREF_SRC = ./src/
- PREF_OBJ = ./obj/
- SRCS = $(wildcard $(PREF_SRC)*.c)
- OBJS = $(patsubst $(PREF_SRC)%.c, $(PREF_OBJ)%.o, $(SRCS))
- $(TARGET): $(OBJS)
- $(CC) $(OBJS) -o $(TARGET) $(LIBS)
- $(PREF_OBJ)%.o: $(PREF_SRC)%.c
- $(CC) $(CFLAGS) -c $< -o $@
- clean:
- rm $(TARGET) $(PREF_OBJ)*.o
|