makefile.unx

来自「Wxpython Implemented on Windows CE, Sou」· UNX 代码 · 共 34 行

UNX
34
字号
#
# File:		makefile.unx
# Author:	Julian Smart
# Created:	1998
# Updated:	
# Copyright:	(c) 1998 Julian Smart
#
# Makefile for penguin example (UNIX).

OPENGL_LIBS=-lGL -lGLU
#if you have old Mesa, try this:
#OPENGL_LIBS=-lMesaGL -lMesaGLU

CC = $(shell wx-config --cc)
CXX = $(shell wx-config --cxx)

Penguin: penguin.o trackball.o lw.o
	$(CXX) -o Penguin \
	penguin.o trackball.o lw.o \
	`wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)

penguin.o: penguin.cpp
	$(CXX) `wx-config --cxxflags` -I../../gtk -c penguin.cpp

lw.o: lw.cpp
	$(CXX) `wx-config --cxxflags` -I../../gtk -c lw.cpp

trackball.o: trackball.c
	$(CC) `wx-config --cflags` -I../../gtk -c trackball.c

clean: 
	rm -f *.o Penguin

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?