qse/ase/awk/makefile.cl

39 lines
797 B
Common Lisp
Raw Normal View History

2006-08-03 09:54:16 +00:00
SRCS = \
2006-08-31 16:00:20 +00:00
awk.c err.c tree.c str.c tab.c map.c parse.c \
2006-10-03 14:38:26 +00:00
run.c rec.c val.c func.c misc.c extio.c rex.c
2005-09-30 09:40:15 +00:00
OBJS = $(SRCS:.c=.obj)
2006-03-31 16:56:01 +00:00
OUT = xpawk
2005-09-30 09:40:15 +00:00
2006-08-03 09:54:16 +00:00
JAVA_INC = \
/I"C:\Program Files\IBM\Java141\Include" \
/I"C:\Program Files\IBM\Java141\Include\Win32"
2005-09-30 09:40:15 +00:00
CC = cl
2006-10-12 14:36:25 +00:00
LD = link
CFLAGS = /nologo /O2 /MT /W3 /GR- /Za /D_WIN32_WINNT=0x0400 -I../.. -DXP_CHAR_IS_WCHAR $(JAVA_INC)
2005-09-30 09:40:15 +00:00
2006-03-31 16:56:01 +00:00
all: lib
lib: $(OBJS)
2006-10-12 14:36:25 +00:00
$(LD) /lib @<<
2006-03-31 16:56:01 +00:00
/nologo /out:$(OUT).lib $(OBJS)
2005-09-30 09:40:15 +00:00
<<
2006-03-31 16:56:01 +00:00
dll: $(OBJS)
2006-10-12 14:36:25 +00:00
$(LD) /dll /def:awk.def /subsystem:console /version:0.1 /release @<<
2006-03-31 16:56:01 +00:00
/nologo /out:$(OUT).dll $(OBJS)
<<
2005-09-30 09:40:15 +00:00
2006-08-02 15:03:49 +00:00
jni: $(OBJS) jni.obj
2006-10-12 14:36:25 +00:00
$(LD) /dll /def:jni.def /subsystem:console /version:0.1 /release @<<
/nologo /out:$(OUT).dll $(OBJS) jni.obj ..\bas\xpbas.lib
2006-08-02 15:03:49 +00:00
<<
2005-09-30 09:40:15 +00:00
clean:
del $(OBJS) $(OUT) *.obj
.SUFFIXES: .c .obj
.c.obj:
$(CC) $(CFLAGS) /c $<