File: Makefile.orig

package info (click to toggle)
sted 0.3.0-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 188 kB
  • ctags: 60
  • sloc: ansic: 1,359; makefile: 61; sh: 8
file content (32 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (3)
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
#
# Makefile for sted v.0.2.1, Simple (or Stupid) Text Editor 
# by Linus �kerlund.
#


#Compiler, change if you're using some other compiler
CC = gcc

#Compiler and linker options
C_OPTS = -Wall -O2 
L_OPTS = -lncurses  

#Install directory
INSTDIR = /usr/local

all:	sted

clean:
	rm -f *.o
	rm -f sted

sted:	sted.o
	$(CC) $(C_OPTS) -o sted sted.o $(L_OPTS)
	strip sted

sted.o:	sted.c 
	$(CC) $(C_OPTS) -c sted.c

install: 
	cp -f sted $(INSTDIR)/bin/sted
	cp -f sted.1 $(INSTDIR)/man/man1/sted.1