Revision 960

trunk/src/tools99/mingw-optg32-rh8-laplace.mak (revision 960)
1
CC = gcc
2
LL = tlib
3

  
4
CFLAGS=-O3
5
ifdef DEBUG
6
CFLAGS=-g
7
endif
8

  
9
FLAGS = $(CFLAGS) -Wall -Wno-conversion -Wno-non-virtual-dtor -Wno-format -Wno-strict-aliasing -Wno-write-strings -Wno-unused-function -Wno-unknown-pragmas -Wno-sign-compare -Wno-missing-braces -Wno-cast-qual -Wno-uninitialized -Wno-reorder -Wno-deprecated -Wno-unused-label -Wno-unused-variable ${PVMOPTION} -DUSE_LAPLACE -fpermissive -c -I. -I..\linad99 -I..\tools99 -D__SPDLL__ -D__GNUDOS__ -Dlinux -DOPT_LIB
10

  
11
FLAGS1 = $(CFLAGS) -w ${PVMOPTION} -DUSE_LAPLACE -fpermissive -c -I. -I..\linad99 -I..\tools99 -D__SPDLL__ -D__GNUDOS__ -Dlinux -DOPT_LIB
12

  
13
LIBPATH =gcc32-rh8olp
14
LIBNAME = libadt.a
15
SRCDIR = src
16
vpath %.obj $(LIBPATH)$
17

  
18
.SUFFIXES: .obj .cpp
19

  
20
.PHONY: disk
21
include objects.lst
22

  
23
$(LIBPATH)\$(LIBNAME): $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3)
24
	cmd /C "cd $(LIBPATH)& ar -rs $(LIBNAME) *.obj"
25

  
26
$(filter-out cifstrem.obj, $(OBJ0)): %.obj: %.cpp
27
	$(CC) $(FLAGS) $< -o $(LIBPATH)\$*.obj
28

  
29
cifstrem.obj: %.obj: %.cpp
30
	$(CC) $(FLAGS1) $< -o $(LIBPATH)\$*.obj
31

  
32
$(OBJ1): %.obj: %.cpp
33
	$(CC) $(FLAGS) $< -o $(LIBPATH)\$*.obj
34

  
35
$(OBJ2): %.obj: %.cpp
36
	$(CC) $(FLAGS) $< -o $(LIBPATH)\$*.obj
37

  
38
$(OBJ3): %.obj: %.cpp
39
	$(CC) $(FLAGS) $< -o $(LIBPATH)\$*.obj
40

  
41

  
42
all: $(LIBPATH)\$(LIBNAME) disk
43

  
44

  
45
disk: $(LIBPATH)\$(LIBNAME)
46
	cmd /C "copy $(LIBPATH)\$(LIBNAME) $(DISKDIR)\lib"
47
	cmd /C "copy adoption.hpp $(DISKDIR)\include"
48
	cmd /C "copy adstring.hpp $(DISKDIR)\include"
49
	cmd /C "copy cifstrem.h $(DISKDIR)\include"
50
	cmd /C "copy clist.h $(DISKDIR)\include"
51

  
52
clean:
53
	if exist $(LIBPATH) rd /S /Q $(LIBPATH)

Also available in: Unified diff