File: makefile.cygwin

package info (click to toggle)
gplcver 2.12a-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,604 kB
  • ctags: 9,129
  • sloc: ansic: 126,201; sh: 1,539; makefile: 86; perl: 22
file content (22 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Make file for creating a vfopen1 VPI PLI function DLL
#

SHELL=/bin/bash

CC=gcc
CVER=../../objs/cver

DLLSRCS=vfopen1.c
DLLOBJS=vfopen1.o
VSRCS=vfopen1.v

dll: $(DLLOBJS)
	$(CC) -shared -o libvfopen1.dll -Wl,--out-implib=libvfopen1.dll.a \
		-Wl,--export-all -Wl,--enable-auto-image-base \
		-Wl,--export-dynamic -Wl,--output-def=libvfopen1.def $(DLLOBJS) -lcver

run: libvfopen1.dll
	$(CVER) -q +loadvpi=./libvfopen1.dll:vpi_compat_bootstrap $(VSRCS)

.c.o: $(DLLSRCS)
	$(CC) -c -I./ -I../../pli_incs $<