summaryrefslogblamecommitdiff
path: root/src/ladmin/Makefile.in
blob: 87cc2ad49b5ccc6cc7d86d08f543ca0211633c6f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
 




                                                                                        





                                                                    





                                                                     

                                                                                 

      
                                           









                                                                     

                  
 
                                    
                                                                 






                                 
COMMON_OBJ = ../common/obj/minicore.o ../common/obj/minisocket.o ../common/obj/timer.o \
	../common/obj/malloc.o ../common/obj/showmsg.o ../common/obj/strlib.o \
	../common/obj/utils.o ../common/obj/md5calc.o
COMMON_H = ../common/core.h ../common/socket.h ../common/timer.h ../common/mmo.h \
	../common/version.h ../common/malloc.h ../common/showmsg.h ../common/strlib.h \
	../common/utils.h ../common/md5calc.h ../common/cbasetypes.h

LADMIN_OBJ = obj/ladmin.o
LADMIN_H = ladmin.h

@SET_MAKE@

#####################################################################
.PHONY : all ladmin clean help

all: ladmin

ladmin: obj $(LADMIN_OBJ) $(COMMON_OBJ)
	@CC@ @LDFLAGS@ -o ../../ladmin@EXEEXT@ $(LADMIN_OBJ) $(COMMON_OBJ) @LIBS@

clean:
	rm -rf *.o obj ../../ladmin@EXEEXT@

help:
	@echo "possible targets are 'ladmin' 'all' 'clean' 'help'"
	@echo "'ladmin'  - remote administration tool"
	@echo "'all'     - builds all above targets"
	@echo "'clean'   - cleans builds and objects"
	@echo "'help'    - outputs this message"

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

obj:
	-mkdir obj

obj/%.o: %.c $(LADMIN_H) $(COMMON_H)
	@CC@ @CFLAGS@ @LDFLAGS@ @CPPFLAGS@ -c $(OUTPUT_OPTION) $<

# missing common object files
../common/obj/%.o:
	@$(MAKE) -C ../common txt

../common/obj/mini%.o:
	@$(MAKE) -C ../common txt