first commit
This commit is contained in:
41
CS4451/proj4/Makefile
Normal file
41
CS4451/proj4/Makefile
Normal file
@@ -0,0 +1,41 @@
|
||||
CC = g++
|
||||
#OPT = -Wno-deprecated -O3 -DSHOW_FPS
|
||||
OPT = -Wno-deprecated -O3 -D_NV_OPENGL
|
||||
LIBS = -L/usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lXi -lX11 -lm
|
||||
SRC = main.cpp FileReader.cpp Renderer.cpp Input.cpp
|
||||
OBJ = main.o FileReader.o Renderer.o Input.o
|
||||
INCS = -I/usr/X11R6/include
|
||||
INC = FileReader.h Renderer.h Input.h structs.h defs.h
|
||||
TARGET = proj4
|
||||
MISC = Makefile
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET) : $(OBJ) $(MISC)
|
||||
$(CC) $(OPT) -o $(TARGET) $(INCS) $(OBJ) $(LIBS)
|
||||
|
||||
%.o : %.cpp $(MISC) $(INC)
|
||||
$(CC) $(OPT) $(INCS) -c -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f $(OBJ) $(TARGET)
|
||||
|
||||
|
||||
|
||||
#all : proj1
|
||||
|
||||
#proj1 : proj1.o functions.o image.o ray.o
|
||||
# $(CC) $(OPT) -o proj1 proj1.o functions.o $(LIBS)
|
||||
|
||||
#proj1.o : proj1.c defs.h
|
||||
# $(CC) $(OPT) -c proj1.c
|
||||
|
||||
#functions.o: functions.cpp defs.h functions.h
|
||||
# $(CC) $(OPT) -c functions.cpp
|
||||
|
||||
#image.o: image.cpp defs.h
|
||||
# $(CC) $(OPT) -c image.cpp
|
||||
|
||||
#clean:
|
||||
# rm *.o proj1
|
||||
|
||||
Reference in New Issue
Block a user