# $Id: makefile.os2,v 1.12 2000-12-02 23:27:03 bird Exp $ ODIN32_TOOLS = ..\bin ODIN32_INCLUDE = ..\..\include !include $(ODIN32_INCLUDE)\odin32.tools.mk #DEFS = -D__WINE__ -D__WIN32OS2__ -idirafter ../../include/win -idirafter ../../include DEFS = -D__WINE__ -D__SEMICOLON__ -I. -I../../include/win -I../../include PROGRAMS = wrc.exe MODULE = none OBJS = \ dumpres.o \ genres.o \ newstruc.o \ preproc.o \ readres.o \ utils.o \ wrc.o \ y.tab.o \ lexyy.o \ writeres.o EXTRA_SRCS = parser.y parser.l EXTRA_OBJS = y.tab.o lex.yy.o all: $(PROGRAMS) CC = gcc #CFLAGS_G = -Wall YACC=bison LEX=flex .SUFFIXES : .SUFFIXES : .c .o .c.o : $(CC) $(CFLAGS_G) $(DEFS) -c $< -o $@ wrc.exe: lexyy.c y.tab.c $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) copy $@ ..\bin y.tab.c y.tab.h: parser.y $(YACC) -d -t parser.y -o y.tab.c lexyy.c: parser.l $(LEX) -8 parser.l dep: $(DEPEND) -I../../include/win -I../../include -I$(C_INCLUDE_PATH) \ *.h *.asm *.inc $(ODIN32_INCLUDE)\*.h *.c *.cpp -objo *.c *.cpp clean: rm -f *.o *.exe # $(RM) y.tab.c y.tab.h lexyy.c *.o *.exe # # Include the .depend file. # If the depend file don't exists we'll complain about it. # !ifndef NODEP ! if [$(EXISTS) .depend] == 0 ! include .depend ! else ! if [$(ECHO) .depend doesn't exist] ! endif ! endif !endif