I’m new about IBM AIX and GNU.
Here’s my current Makefile for OpenGL program:
INCLUDE = -I/usr/lpp/X11/include/
LIBDIR = -L/usr/lpp/X11/lib
COMPILERFLAGS = -Wall
CC = gcc
CFLAGS = $(COMPILERFLAGS) $(INCLUDE)
LIBRARIES = -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm
OBJECTS = View.o ArmL.o ArmU.o
View: $(OBJECTS)
$(CC) $(CFLAGS) -o $@ $(LIBDIR) $^ $(LIBRARIES)
I could compile *.c to *.o but got error when GCC link them.
Could somebody modify this Makefile or give me a new one in order to successfully make them in IBM AIX environment?
Thank you.