FreeCalypso > hg > tcs211-patches
annotate tool/Makefile @ 1:b9fe017905f8
let's call it ti-libpatch
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Fri, 05 Jun 2015 01:17:39 +0000 |
parents | 12e230d431f0 |
children | 058d377fc299 |
rev | line source |
---|---|
0
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 CC= gcc |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
1
b9fe017905f8
let's call it ti-libpatch
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
3 PROG= ti-libpatch |
0
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 OBJS= globals.o main.o readspec.o |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 HDRS= ar.h globals.h patchinfo.h |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 all: ${PROG} |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 ${PROG}: ${OBJS} |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 ${CC} -o $@ ${OBJS} |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 ${OBJS}: ${HDRS} |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 install: |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 install -c -o bin -g bin -m 755 ${PROG} /usr/local/bin |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 clean: |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 rm -f *.o ${PROG} *errs |