Jay's Blog

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
makefile in cygwin
CC = g++

LDLIBS 
= -lGlut32 -lOpenGL32 -lGLU32 -lXmu -lX11 -lm

INCLUDE 
=  -L/usr/X11R6/lib -L/lib/w32api

base:    base.cpp
    $(CC) 
-g $(INCLUDE) base.cpp $(LDLIBS) -base

makefile in linux
CC = g++

LDLIBS 
= -lglut  -lGL -lGLU -lXmu -lX11 -lm

INCLUDE 
=  -L/usr/X11R6/lib 

base:    base.cpp
    $(CC) 
-g $(INCLUDE) base.cpp \
                 $(LDLIBS) 
-base
posted on 2006-10-21 12:38  Jayma  阅读(163)  评论(0编辑  收藏  举报