File: Makefile

package info (click to toggle)
amiga-fdisk 0.04-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 416 kB
  • sloc: ansic: 1,316; makefile: 197; sh: 35
file content (41 lines) | stat: -rw-r--r-- 963 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Makefile -- Makefile for amiga-fdisk
#
# Copyright '96-'98 Stefan Reinauer (stepan@linux.de)
#

CC=             gcc
ifeq ($(USE_READLINE),no)
CFLAGS?=         -O2 -fomit-frame-pointer -Wall -I./include -DDONT_USE_READLINE -DFIX_NO_READLINE
#CFLAGS=         -g -fomit-frame-pointer -Wall -I./include -DDEBUG -DDONT_USE_READLINE
LDFLAGS?=        # -s -N
else
CFLAGS?=         -O2 -fomit-frame-pointer -Wall -I./include
#CFLAGS=         -g -fomit-frame-pointer -Wall -I./include -DDEBUG
LIBS?=		-lreadline
LDFLAGS?=        # -s -N
endif

# Where to put binaries?
# See the "install" rule for the links. . .

INSTALL=	install
INSTALLDIR=	/usr/sbin
SBIN= 		amiga-fdisk

# Where to put datebase files?

all: $(SBIN)

amiga-fdisk: amigastuff.o fdisk.o
	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@

install: all
	$(INSTALL) -d $(DESTDIR)$(INSTALLDIR)
	$(INSTALL) $(SBIN) $(DESTDIR)$(INSTALLDIR)

clean:
	-rm -f *.o *~ core $(SBIN)

tidy:
	-rm -f *.o *~ core 
	-strip amiga-fdisk