summaryrefslogblamecommitdiff
path: root/saedit/Makefile
blob: a45c3c1040c8a0feb1d6ecfb1f6b57477d1f3f5c (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                          
                                                          
 
                                                         
 
               

                                                      
                                                                                    
                                                      
                                        
                                    
                                             
                           
                                       
                                    
                                             
                           
                                       
      
                                       
ifndef CFLAGS
	CFLAGS = -O2 -pipe
endif

ifndef LDFLAGS
	LDFLAGS = 
endif

LDFLAGS += -export-dynamic

CFLAGS += `pkg-config --cflags gtk+-3.0 gtksourceview-3.0`

LDFLAGS += `pkg-config --libs gtk+-3.0 gtksourceview-3.0`

OUTPUT = saedit
all:clean main.o search.o config.o xml.o sae.o compile
compile: main.o search.o config.o xml.o
	gcc ${CFLAGS} ${LDFLAGS} -o '${OUTPUT}' main.o search.o config.o xml.o sae.o
main.o: main.c main.h search.h config.h common.h xml.h
	gcc ${CFLAGS}-c -o main.o main.c
search.o: search.c search.h common.h
	gcc ${CFLAGS} -c -o search.o search.c
xml.o: xml.c xml.h common.h
	gcc ${CFLAGS} -c -o xml.o xml.c
config.o: config.c config.h common.h
	gcc ${CFLAGS} -c -o config.o config.c
sae.o: sae.c sae.h common.h
	gcc ${CFLAGS} -c -o sae.o sae.c
clean:
	rm -rfv '${OUTPUT}' *.o *.o~ *~