Finalize
[pkg/mmv.git] / Makefile
1 # Possible defines in CONF:
2 #       IS_MSDOS IS_SYSV IS_V7 IS_BSD HAS_DIRENT HAS_RENAME MV_DIR
3
4 CC              =gcc -traditional
5 LD              =$(CC)
6 CONF            =-DIS_SYSV -DHAS_DIRENT -DHAS_RENAME
7 CFLAGS          =-O2 -m486 $(CONF)
8 LDFLAGS         =-s -N
9
10 #IBIN           =$(LOCAL)$(ARCH)/bin
11 #IMAN           =$(LOCAL)$(ANY)/man
12 IBIN=$(DESTDIR)/usr/bin/
13 IMAN=$(DESTDIR)/usr/man/
14
15 mmv:            mmv.o
16
17 clean:
18         rm -f mmv mmv.o
19
20 install:        $(DEST)$(IBIN)/mmv
21 install:        $(DEST)$(IMAN)/man1/mmv.1
22
23 $(DEST)$(IBIN)/mmv:             mmv;    cp $? $@
24 $(DEST)$(IMAN)/man1/mmv.1:      mmv.1;  cp $? $@