~ubuntu-branches/ubuntu/intrepid/dis51/intrepid

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Hermann
  • Date: 2008-02-17 15:52:20 UTC
  • Revision ID: james.westby@ubuntu.com-20080217155220-mnsnjsovxvw46y0i
Tags: upstream-0.5
ImportĀ upstreamĀ versionĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CC=gcc
 
2
CFLAGS=-c -I. -Wall
 
3
LDFLAGS=
 
4
SHAREDLDFLAGS=-lhexfile
 
5
 
 
6
OBJECTS=main.o pass1.o pass2.o global.o
 
7
HFOBJ=hexfile.o
 
8
 
 
9
default: dis51
 
10
 
 
11
dis51: $(OBJECTS) $(HFOBJ)
 
12
        $(CC) $(LDFLAGS) $(OBJECTS) $(HFOBJ) -o dis51
 
13
 
 
14
main.o: pass1.h main.c
 
15
        $(CC) $(CFLAGS) main.c -o main.o
 
16
 
 
17
pass1.o: pass1.c distypes.h global.h
 
18
        $(CC) $(CFLAGS) pass1.c -o pass1.o
 
19
 
 
20
pass2.o: pass2.c distypes.h global.h
 
21
        $(CC) $(CFLAGS) pass2.c -o pass2.o
 
22
 
 
23
global.o: global.c distypes.h
 
24
        $(CC) $(CFLAGS) global.c -o global.o
 
25
 
 
26
hexfile.o: hexfile.c
 
27
        $(CC) $(CFLAGS) hexfile.c -o hexfile.o
 
28
 
 
29
# use "make shared" if you have libhexfile installed as a shared library
 
30
shared: $(OBJECTS)
 
31
        $(CC) $(SHAREDLDFLAGS) $(OBJECTS) -o dis51
 
32
 
 
33
clean:
 
34
        rm -f *.o dis51 core