Hi,
I send you a strip-downed version of a Makefile to use with XForms
applications.
Do 'make depend' to insert dependencies to the makefile. See
makedepend(1).
Feel free to use it if you want.
Regards,
Sindre
##############-*-makefile-*-#########################################
## Copyright (C) 1997 Sindre Mehus
##
## Filename: Makefile
## Description: Example makefile for XForms applications
## Author: Sindre Mehus <mehus@este>
## Created at: Tue Feb 25 11:49:35 1997
## Modified at: Sat Mar 8 17:29:28 1997
## Modified by: Sindre Mehus <mehus@este>
## Update count: 2
##
######################################################################
####### Configuration #######
CC = gcc
XROOT = /usr/openwin # location of X
FROOT = /home/mehus # location of XForms
INC = -I$(XROOT)/include -I$(FROOT)/include
LIBDIR = -L$(XROOT)/lib -L$(FROOT)/lib
LIB = -lX11 -lforms -lm -lsocket
DEFS = -DDEBUG
CFLAGS = -g -Wall $(DEFS) $(INC)
####### Macros #######
SRCS = foo.c foo_cb.c foo_main.c
OBJS = foo.o foo_cb.o foo_main.o
EXE = foo
####### Suffix rules #######
.SUFFIXES: .o .c
.c.o:
$(CC) $(CFLAGS) -c $<
####### Targets #######
all: $(EXE)
$(EXE): $(OBJS)
$(CC) $(CFLAGS) -o $(EXE) $(OBJS) $(LIBDIR) $(LIB)
depend:
makedepend -- $(CFLAGS) -- $(SRCS)
clean:
rm -f *.o *~ core a.out
scrub: clean
rm -f *.bak $(EXE)
-- Sindre Mehus __ mailto:mehus@darmstadt.gmd.de GMD-IPSI /\_\ http://www.cs.uit.no/~sindrem/ Dolivostr. 15 \/_/ Tel: +49 6151 869 902 D-64293 Darmstadt, Germany Fax: +49 6151 869 966 _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html Xforms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/