summary refs log blame commit diff stats
path: root/makefile
blob: 84b0f2189fa023cb98e315b1b8233b822091db13 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                   

                      
        
 



                                                   

      
                        







                                
CC = cc
#CC = tcc
CFLAGS = -Wall -I/usr/local/include
CFLAGS += -std=c89
LDFLAGS = -L/usr/local/lib -lhyphen
LDFLAGS += -static
bindir = /home/kaa/bin

all: hyp

hyp:
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ en.c hyp.c
hyp-es:
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ es.c hyp.c

clean:
	rm -f hyp hyp-es

install: all
	cp hyp $(bindir)/hyp
	cp unhyp $(bindir)/unhyp

uninstall:
	rm -f $(bindir)/hyp
	rm -f $(bindir)/unhyp