source: trunk/minix/commands/elle/Makefile@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.8 KB
RevLine 
[9]1# Makefile for elle
2
3CC = exec cc
4CFLAGS = -O -DIGN_JOB_CONTROL -D_POSIX_SOURCE -wa
5LDFLAGS= -i
6
7all: elle ellec
8
9OBJ = eemain.o eecmds.o eesite.o eevini.o eedisp.o eeterm.o eeerr.o \
10 eeques.o eebuff.o eefile.o eefed.o eeedit.o eebit.o eef1.o \
11 eef2.o eefd.o eehelp.o eekmac.o eef3.o eesrch.o eequer.o \
12 eefill.o eediag.o sbstr.o sbm.o sberr.o sbbcpy.o
13
14# It probably isn't necessary to make all this stuff all the time, but it
15# is fairly easy and makes the whole process simpler. If this is not done,
16# the dependencies are very complicated because some of the .c and .h files
17# are made dynamically.
18elle: ellec $(OBJ) $(FUN_OFILES) elle.h eesite.h
19# $(CC) $(CFLAGS) -c defprf.c # depends on the new *.h files
20 $(CC) $(LDFLAGS) -o $@ $(OBJ)
21 install -S 64k $@
22
23defprf.c: deffun.e
24 cat deffun.e defprf.e | ellec -Pconf > defprf.c
25
26eefdef.h: deffun.e
27 cat deffun.e defprf.e | ellec -Fconf > eefdef.h
28
29eefidx.h: deffun.e
30 cat deffun.e defprf.e | ellec -FXconf > eefidx.h
31
32# Don't flush these files if interrupted, dammit!
33.PRECIOUS: ellec deffun.e defprf.e
34
35# The following files must be recompiled if eefidx.h is changed
36eecmds.o eebuff.o eeerr.o eehelp.o eejust.o eemain.o eeques.o eef1.o: eefidx.h
37
38# ELLE profile compiler.
39# Although eefdef.h and defprf.c are included by ELLEC, they
40# are not listed as dependencies in order to avoid loops (see
41# their target entries). That is OK because their information is not
42# used when generating the makecf files; it only furnishes default
43# values needed when an ELLE user compiles a user profile.
44ellec: ellec.c
45 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ ellec.c
46 install -S 8kw $@
47
48install: /usr/bin/elle /usr/bin/ellec
49
50/usr/bin/elle: elle
51 install -cs -o bin elle $@
52
53/usr/bin/ellec: ellec
54 install -cs -o bin ellec $@
55
56clean:
57 rm -f *.o *.bak core elle ellec
Note: See TracBrowser for help on using the repository browser.