#---------------------------------------------------------------------------- # windows/Makefile # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # Creation: 03.05.2000 fm # Last Update: $Id: Makefile 10862 2006-01-22 22:46:57Z jw5 $ #---------------------------------------------------------------------------- CFLAGS :=-O2 ifeq ($(DATE),) CFLAGS+=-DDATE='"self compiled"' else CFLAGS+=-DDATE='"$(DATE)"' endif VERBOSE:=@ LDFLAGS+=$(STATIC) -s LDLIBS:=/usr/lib/libcrypt.a # cygwin needs this LDFLAGS+=-Wl,--enable-auto-import EXEEXT:=.exe EXECUTABLES:=mkfli4l.exe regexp.exe gen_init_cpio.exe \ gen_init_tar.exe # vpath %.h ../unix # vpath %.c ../unix VPATH=../unix/ CHECK:=$(wildcard ../unix/*.o ../unix/*.a) ifneq ($(CHECK),) $(error please clean '../unix' before building windows executables) endif include ../unix/Makefile.inc chkdir: grammar.c: grammar.y touch grammar.c lex.c: lex.l touch lex.c lex.cfg.c: cfg.l touch lex.cfg.c squeeze.c: squeeze.l touch squeeze.c