# File: Makefile for LaunchMenu
# Author: Gerhard W. Gruber
# Created: 2003
# Updated:
# Copyright: (c) 2003 Gerhard W. Gruber in Germany
#
# This makefile requires a Unix version of wxWindows
# to be installed on your system. This is most often
# done typing "make install" when using the complete
# sources of wxWindows or by installing the two
# RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm
# under Linux.
#
# In case you change a string in StringTable.txt, you should
# make a "make clean" and recompile. Often the strings are
# used in many sources and it would require the makefile to
# be much more complex if the dependencies are built in it.
#
#*****************************************************************************
#
# PROJECT: LaunchMenu
# $Source: /cvsroot/launchmenu/LaunchMenu/Makefile,v $
# $Revision: 1.3 $
# $Date: 2003/11/09 10:48:36 $
# $Author: lightweave $
# $Name: $
#
# $Log: Makefile,v $
# Revision 1.3 2003/11/09 10:48:36 lightweave
# Fixes to make linux version work. In Detail:
# .) Added a window in linux.cpp which is aligned at the specified border.
#
# .) Added a timer that keeps the winod on top of all others (linux only).
#
# .) Changed ButtonUp to ButtonDown message. This will work nicer on linux and
# doesn't effect the Windows version.
#
# Revision 1.2 2003/10/14 21:10:57 lightweave
# Updates for Windows version which works now properly.
# Hook code has been changed to WH_MOUSE instead of the WH_JOURNALRECORD I
# used previously.
#
# Revision 1.1 2003/10/04 22:03:13 lightweave
# OS dependent part for compiling under Linux.
#
#
#*****************************************************************************
CC = gcc
PROGRAM = LaunchMenu
OBJECTS = GlobalStrings.o Strip.o memwatch.o Profile.o\
ToUpper.o fdchar.o rdline.o LaunchMenuDlg.o LaunchMenu.o Linux.o
INCL=`wx-config --cxxflags` -I /usr/include/X11 -I /usr/local/include/gtk-2.0 -I /usr/local/include/glib-2.0 -I /usr/local/include/pango-1.0 -I /usr/local/include/atk-1.0 -I /usr/local/lib/gtk-2.0/include -I /usr/local/lib/glib-2.0/include
DEFINES= -D _LINUX_
LIBS=`wx-config --libs` -L/usr/lib -lc
DEBUG=-g -pg -D__WXDEBUG__
# implementation
.SUFFIXES: .o .cpp
.cpp.o :
$(CC) -c -o $@ $< $(INCL) $(DEFINES) $(DEBUG)
.c.o :
$(CC) -c -o $@ $< $(INCL) $(DEFINES) $(DEBUG)
all: $(PROGRAM) StringTable.h StringTableTxt.h
$(PROGRAM): $(OBJECTS)
$(CC) -o $(PROGRAM) $(OBJECTS) $(LIBS)
GlobalStrings.o: GlobalStrings.cpp GlobalStrings.h StringTable.h StringTableTxt.h
$(CC) -c -o $@ $< $(INCL) $(DEFINES) $(DEBUG)
StringTable.h StringTableTxt.h: StringTable.txt
python CreateTranslationTable.py StringTable.txt StringTable.h StringTableTxt.h
clean:
rm -f $(OBJECTS) $(PROGRAM) *~ *.out StringTable.h StringTableTxt.h