head     1.1;
branch   1.1.1;
access   ;
symbols  MW_0_8_9PRE7:1.1.1.1 MM:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2002.02.15.09.17.31;  author markom;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2002.02.15.09.17.31;  author markom;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@##############################################################################
# Microwindows template Makefile
# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
##############################################################################

ifndef TOP
TOP = ../..
CONFIG = $(TOP)/config
endif

include $(CONFIG)

######################## Additional Flags section ############################

# Directories list for header files
INCLUDEDIRS +=
# Defines for preprocessor
DEFINES +=

# Compilation flags for C files OTHER than include directories
CFLAGS +=
# Preprocessor flags OTHER than defines
CPPFLAGS +=
# Linking flags
LDFLAGS +=

############################# targets section ################################

ifeq ($(NANOWM), Y)

# If you want to create a library with the objects files, define the name here
LIBNAME =

# List of objects to compile
OBJS = nanowm.o events.o wlist.o clients.o actions.o

ifeq ($(ARCH), ECOS)
TARGET = $(TOP)/bin/nanowm.o
else
TARGET = $(TOP)/bin/nanowm
endif

all: default $(TARGET)

endif

######################### Makefile.rules section #############################

include $(TOP)/Makefile.rules

######################## Tools targets section ###############################
ifeq ($(SHAREDLIBS), Y)
$(TOP)/bin/nanowm: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@@ $(CCNANOXCLIENTLIBS)
else
ifeq ($(ARCH), ECOS)
$(TOP)/bin/nanowm.o: $(OBJS) $(TOP)/config
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-r -Wl,--defsym -Wl,nanowm_main=main -o XX.o
	$(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@@
	rm -f XX.o
else
$(TOP)/bin/nanowm: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@@ $(NANOXCLIENTLIBS)
endif
endif
@


1.1.1.1
log
@modified offitial version of microwindows 0.89-pre7
@
text
@@
