This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question: make, makefile and KVM in J2ME

Hi, Igor Pechtchanski

Sorry for switch the thread. Next time will I just reply the message instead of putting a new thread if I want to continue discuss?

Yeah you are right, I miss many there. I am not familiar with cygwin. I didn't put more detail (the right makefile), because I find a similar one the list so I follow his one and hope to get help.

Here is the makefile in the tools/preverifier/build/win32
# Copyright 1995-2002 by Sun Microsystems, Inc.,
# 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
# All rights reserved.
# This software is the confidential and proprietary information
# of Sun Microsystems, Inc. ("Confidential Information").  You
# shall not disclose such Confidential Information and shall use
# it only in accordance with the terms of the license agreement
# you entered into with Sun.
# Use is subject to license terms.

include $(TOP)/build/

SRC_DIR = ../../src

OBJS = \
	check_class.obj \
	main.obj \
	utf.obj \
	check_code.obj \
       convert_md.obj \
	util.obj \
       jar.obj \
       jar_support.obj \
	classloader.obj \
	file.obj \
	classresolver.obj \
	stubs.obj \
	inlinejsr.obj \

	-I$(SRC_DIR) \
	-DWIN32 \
	-D$(ARCH) \

ifeq ($(GCC), true)
  CC = gcc
  LD = gcc
  CFLAGS = -DWIN32 -DGCC -mno-cygwin -mcpu=i386 -Wall $(OTHER_FLAGS)
  LIBS= -luser32 -lkernel32 -lmsvcrt -lwsock32
  LDFLAGS = -mno-cygwin

ifeq ($(DEBUG), true)

  OUTPUT = -o

  CC= cl
  LD= link
  CFLAGS= -DWIN32 -nologo $(OTHER_FLAGS)
  LIBS= user32.lib kernel32.lib wsock32.lib

ifeq ($(DEBUG), true)
  LDFLAGS += -debug

  OUTPUT = -Fo

all: preverify.exe

preverify.exe: $(OBJS)

%.obj: $(SRC_DIR)/%.c
	@$(CC) $(CFLAGS) $(DEBUG_FLAG) -c $(OUTPUT)$@ $<

	rm -f core *.obj preverify.exe *.ilk *.pdb


When I install cygwin (setup.exe). I select all option in the devel and I select all others by default. Actually I use this soft three days age and I really don't know how to give a correct description of my question although I read some documents in the website.

Thank you for your help, and also wait for your further help.


From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
Reply-To: cygwin at cygwin dot com
To: yi ru <ru_yi99 at hotmail dot com>
CC: cygwin at cygwin dot com
Subject: Re: Question: make, makefile and KVM in J2ME
Date: Thu, 27 Mar 2003 15:08:06 -0500 (EST)

On Thu, 27 Mar 2003, yi ru wrote:

> My question is different from the thread before in the mail list
> I am trying to run the make file for J2ME (Java 2 Micro Edition). When the
> make file runs I get the following error:
> Recursively making ../../tools/preverifier/build/win32 all...
> make[1]: Entering Directory
> '/cygdrive/d/j2me//j2me_cldc/tools/preverifier/build/win32/'
> make[1]: *** [check_class.obj] Error 255
> make[1]: leaving directory
> '/cygdrive/d/j2me//j2me_cldc/tools/preverifier/build/win32/'
> make: *** [all] Error 1
> Below is a listing of the make file:
> BUILDDIR=$(shell pwd)
> TOP=../..
> PLATFORM=win32
> export PLATFORM
> $(TOP)/tools/preverifier/build/win32 \
> $(TOP)/api \
> $(TOP)/samples \
> $(TOP)/samples/jam
> ifneq ($(ROMIZING), false)
> SUBDIRS += $(TOP)/tools/jcc
> endif
> SUBDIRS += $(TOP)/kvm/VmWin/build
> all clean : FORCE
> @for i in $(SUBDIRS) ; do \
> echo ">>>Recursively making "$$i" "$@"..."; \
> cd $$i; $(MAKE) $@ \
> || exit 1; cd $(BUILDDIR); \
> echo "<<<Finished Recursively making "$$i" "$@"." ; \
> done
> FORCE: ;
> Does anybody has experience on it. BWT, I have gcc available there. I have
> been blocked here for two days
> Thanks in advance
> Eric

At a guess, you're trying to build something Win32 specific under Cygwin,
and it doesn't like Cygwin tools (i.e., looks like there's a pre-compiled
object file that chokes gcc).  There isn't nearly enough information in
your message to draw any useful conclusions.  Please read
<> for more information.
      |\      _,,,---,,_		pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor at watson dot ibm dot com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune

MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.

-- Unsubscribe info: Bug reporting: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]