summaryrefslogblamecommitdiff
path: root/src/plugins/Makefile.in
blob: ff7d5b2e2817b756276fa1586868b9b2bab43ade (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                  
                       


          


         
                                                                     
                                               
 
                        


                      

                      










                                                                          


                                              

                           
                                                                                    
COMMON_H = ../common/HPMi.h ../common/cbasetypes.h

PLUGINS = sample db2sql

@SET_MAKE@

CC = @CC@
export CC

#####################################################################
.PHONY: all $(PLUGINS) sample db2sql clean help

all: $(PLUGINS) Makefile

sample: sample@DLLEXT@

db2sql: db2sql@DLLEXT@

clean:
	@echo "	CLEAN	plugins"
	@rm -rf *.o

help:
	@echo "possible targets are $(PLUGINS:%='%') 'all' 'clean' 'help'"
	@echo "'sample'   - sample plugin"
	@echo "'help'     - outputs this message"

#####################################################################

Makefile: Makefile.in
	@$(MAKE) -C ../.. src/plugins/Makefile

%@DLLEXT@: %.c $(COMMON_H)
	@echo "	CC	$<"
	@$(CC) @DEFS@ @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ @SOFLAGS@ -o ../../plugins/$@ $<