94 lines
1.7 KiB
Makefile
94 lines
1.7 KiB
Makefile
|
.SUFFIXES:
|
||
|
.SUFFIXES: .asn .c .class .h .cpp .java .$(LIB) .$(O)
|
||
|
|
||
|
CCM = $(CONTINUUS)ccm
|
||
|
CHMOD = chmod -f a=rwx
|
||
|
MV = mv
|
||
|
RM = rm -f
|
||
|
LN = ln -s -f
|
||
|
CD = cd
|
||
|
|
||
|
vpath_h = $(subst i",:,$(incdir))
|
||
|
|
||
|
vpath %.c .
|
||
|
vpath %.cs .
|
||
|
vpath %.rc .
|
||
|
vpath %.class .
|
||
|
vpath %.cpp .
|
||
|
vpath %.h $(vpath_h)
|
||
|
vpath %.$(LIB) $(LIBDIR)
|
||
|
vpath %.$(O) $(OBJDIR)
|
||
|
vpath %.res $(OBJDIR)
|
||
|
vpath %.exe $(BINDIR)
|
||
|
vpath %.dll $(BINDIR)
|
||
|
vpath %.nlm $(BINDIR)
|
||
|
vpath %.so $(BINDIR)
|
||
|
|
||
|
%.class : %.java
|
||
|
@echo Compiling $< ...
|
||
|
$(JAVAC) -verbose -d $(OBJDIR) $<
|
||
|
@echo
|
||
|
|
||
|
|
||
|
ifeq ($(PLAT),w32)
|
||
|
CP = cp -v -f -p
|
||
|
|
||
|
%.obj : %.c
|
||
|
@echo Compiling $< ...
|
||
|
$(CC) $(CFLAGS) -TC $(PFLAGS) $(INCDIR) $(OFILE) $<
|
||
|
@echo
|
||
|
|
||
|
%.obj : %.cpp
|
||
|
@echo Compiling $< ...
|
||
|
$(CC) -TP $(CPPFLAGS) $(PFLAGS) $(INCDIR) $(OFILE) $<
|
||
|
@echo
|
||
|
|
||
|
%.$(O) : %.c
|
||
|
@echo Compiling $< ...
|
||
|
$(CC) $(CFLAGS) -TC $(PFLAGS) $(INCDIR) $(OFILE) $<
|
||
|
@echo
|
||
|
|
||
|
%.$(O) : %.cpp
|
||
|
@echo Compiling $< ...
|
||
|
$(CPP) $(CPPFLAGS) $(PFLAGS) $(INCDIR) $(OFILE) $<
|
||
|
@echo
|
||
|
|
||
|
$(CS_NAME) : $(SRC)
|
||
|
@echo Compiling ...
|
||
|
$(CS) $(CFLAGS) $(XTRA_CFLAGS) $(OFILE) $(SRC)
|
||
|
@echo
|
||
|
|
||
|
ifeq ($(MODULE),util)
|
||
|
%.res : %.rc
|
||
|
@echo Compiling Resources $< ...
|
||
|
$(RCS) $(RCFLAGS) $(INCDIR) $<
|
||
|
@echo
|
||
|
else
|
||
|
|
||
|
%.res : %.rc
|
||
|
@echo Compiling Resources $< ...
|
||
|
$(RCS) $(RCFLAGS) $(INCDIR) $(OFILE) $<
|
||
|
@echo
|
||
|
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
ifeq ($(PLAT),lux)
|
||
|
CP = cp -v -f -p
|
||
|
vpath
|
||
|
%.$(O) : %.c
|
||
|
@echo Compiling $< ...
|
||
|
$(CC) $(CFLAGS) $(PFLAGS) $(INCDIR) $< -o $(OBJDIR)$@
|
||
|
@echo
|
||
|
|
||
|
%.$(O) : %.cpp
|
||
|
@echo Compiling $< ...
|
||
|
$(CPP) $(CFLAGS) $(CXXFLAGS) $(PFLAGS) $(INCDIR) $< -o $(OBJDIR)$@
|
||
|
@echo
|
||
|
$(CS_NAME) : $(SRC)
|
||
|
@echo Compiling ...
|
||
|
$(CS) $(CFLAGS) $(XTRA_CFLAGS) $(OFILE) $(SRC)
|
||
|
@echo
|
||
|
endif
|
||
|
|