Gimp/tools/gcg/makefile.cygwin
Tor Lillqvist 0aeb637088 Update gcc instructions. Remove warning about gettext being GPL, as the
* README.win32: Update gcc instructions. Remove warning about
 	gettext being GPL, as the GIMP is GPL, too, of course, and it
 	thus doesn't matter.

	* user_install.bat: Rename the template user gtkrc to gtkrc_user,
 	to reduce user confusion.

	* app/main.c: Small change for gcc on Win32 compilation.

	* */makefile.cygwin
	* app/module_db.c: With newest gcc-2.95 -fnative-struct on Win32,
 	no need to have differently named DLLs (including modules) for
 	(built by) gcc and MSVC.

	* app/module_db.c: Use g_strdup_printf() instead of
 	strlen(), g_malloc() and g_snprintf()

	* libgimp/Makefile.am: No need to distribute gimpfeatures.h.win32,
 	the suitable gimpfeatures.h is built when making the dist.

	* libgimp/gimpfeatures.h.win32: Removed.

	* libgimp/makefile.cygwin
	* libgimp/makefile.msc: Remove gimpfeatures.h.win32.

	* libgimp/gimp.h: Win32 startup code changed a bit.

	* plug-ins/makefile.cygwin
	* plug-ins/makefile.msc: Add the winsnap unofficial plug-in.

	* plug-ins/common/animationplay.c
	* plug-ins/common/gz.c: (Win32) Hack aroung WinMain getting
	clashing declarations because these guys include gdkx.h (which
	includes windows.h), and gimp.h also declares WinMain on its own.
1999-07-21 19:52:20 +00:00

50 lines
886 B
Text

## Makefile for building gcg with gcc -mno-cygwin
## Use: make -f makefile.cygwin
################################################################
CC = gcc -mno-cygwin -mpentium -fnative-struct
LEX = flex
YACC = bison -y
INSTALL = install
GLIB_VER = 1.3
GLIB = ../../../glib
CFLAGS = -g -I$(GLIB) -DCPP_PROGRAM="\"$(CC) -E -x c\"" -DYY_NEVER_INTERACTIVE
all: gcg.exe
YFLAGS = -d -v
LFLAGS = -d
lexer.c : lexer.l
$(LEX) $(LFLAGS) -t lexer.l >lexer.c
parser.c parser.h: parser.y
$(YACC) $(YFLAGS) parser.y
cp y.tab.c parser.c
cp y.tab.h parser.h
gcg_OBJECTS = \
gcg.o \
getopt.o \
parser.o \
lexer.o \
output.o \
pnode.o \
db.o \
output_enum.o \
output_flags.o\
output_object.o\
fp.o \
marshall.o \
gcg.exe : $(gcg_OBJECTS)
$(CC) $(CFLAGS) -o gcg.exe $(gcg_OBJECTS) -L $(GLIB) -lglib-$(GLIB_VER) $(LDFLAGS)
clean:
-rm parser.[ch] lexer.c *.exe *.o