##############################################################################
|
##############################################################################
|
# Microwindows template Makefile
|
# Microwindows template Makefile
|
# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
|
# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
|
##############################################################################
|
##############################################################################
|
|
|
include $(CONFIG)
|
include $(CONFIG)
|
|
|
######################## Additional Flags section ############################
|
######################## Additional Flags section ############################
|
|
|
# Directories list for header files
|
# Directories list for header files
|
INCLUDEDIRS +=
|
INCLUDEDIRS +=
|
# Defines for preprocessor
|
# Defines for preprocessor
|
DEFINES +=
|
DEFINES +=
|
|
|
# Compilation flags for C files OTHER than include directories
|
# Compilation flags for C files OTHER than include directories
|
CFLAGS += -I./bitmaps
|
CFLAGS += -I./bitmaps
|
# Preprocessor flags OTHER than defines
|
# Preprocessor flags OTHER than defines
|
CPPFLAGS +=
|
CPPFLAGS +=
|
# Linking flags
|
# Linking flags
|
LDFLAGS += -lm
|
LDFLAGS += -lm
|
|
|
############################# targets section ################################
|
############################# targets section ################################
|
|
|
ifeq ($(NANOWM), Y)
|
ifeq ($(NANOWM), Y)
|
|
|
# If you want to create a library with the objects files, define the name here
|
# If you want to create a library with the objects files, define the name here
|
LIBNAME =
|
LIBNAME =
|
|
|
# List of objects to compile
|
# List of objects to compile
|
OBJS = nxroach.o
|
OBJS = nxroach.o
|
|
|
all: default $(TOP)/bin/nxroach
|
all: default $(TOP)/bin/nxroach
|
|
|
endif
|
endif
|
|
|
######################### Makefile.rules section #############################
|
######################### Makefile.rules section #############################
|
|
|
include $(TOP)/Makefile.rules
|
include $(TOP)/Makefile.rules
|
|
|
######################## Tools targets section ###############################
|
######################## Tools targets section ###############################
|
|
|
ifeq ($(SHAREDLIBS), Y)
|
ifeq ($(SHAREDLIBS), Y)
|
$(TOP)/bin/nxroach: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
|
$(TOP)/bin/nxroach: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
|
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS)
|
else
|
else
|
$(TOP)/bin/nxroach: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
|
$(TOP)/bin/nxroach: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
|
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS)
|
endif
|
endif
|
|
|