Skip to content

Commit 7865ebf

Browse files
committed
linux compiler changes for libclearsky and libsolar updates
1 parent b7358a1 commit 7865ebf

File tree

6 files changed

+36
-3
lines changed

6 files changed

+36
-3
lines changed

build_linux/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
all:
2+
make -f Makefile-libclearsky -j4
23
make -f Makefile-libcycle -j4
34
make -f Makefile-liboptical -j4
45
make -f Makefile-libsolar -j4
56
make -f Makefile-libcluster -j4
67
make -f Makefile-app -j4
78

89
clean:
10+
make -f Makefile-libclearsky clean
911
make -f Makefile-libcycle clean
1012
make -f Makefile-liboptical clean
1113
make -f Makefile-libsolar clean

build_linux/Makefile-app

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,15 @@ LKLIB = $(LKDIR)/lkuxwx3.a
1313
CC = gcc
1414
CXX = g++
1515
WARNINGS=-Wall -Wno-unknown-pragmas #-Werror
16-
CFLAGS = -g -O0 -I. -I$(WEXDIR)/include -I$(LKDIR)/include -I$(SSCDIR) -I$(HOME)/libsolar -I$(HOME)/liboptical -I$(HOME)/libcluster -I$(HOME)/libcycle -DLK_USE_WXWIDGETS `wx-config-3 --cflags` $(WARNINGS)
17-
LDFLAGS = -std=c++0x -no-pie -I.. ./ssc.so $(WEXLIB) $(LKLIB) liboptical.a libsolar.a libcluster.a libcycle.a `wx-config-3 --libs stc` `wx-config-3 --libs aui` `wx-config-3 --libs` -lm -lfontconfig -ldl -lcurl
16+
CFLAGS = -g -O0 -I. -I$(WEXDIR)/include -I$(LKDIR)/include -I$(SSCDIR) \
17+
-I$(HOME)/libsolar -I$(HOME)/liboptical -I$(HOME)/libcluster -I$(HOME)/libcycle -I$(HOME)/libclearsky \
18+
-DLK_USE_WXWIDGETS `wx-config-3 --cflags` $(WARNINGS)
19+
20+
LDFLAGS = -std=c++0x -no-pie -I.. ./ssc.so $(WEXLIB) $(LKLIB) \
21+
liboptical.a libsolar.a libcluster.a libcycle.a libclearsky.a \
22+
`wx-config-3 --libs stc` `wx-config-3 --libs aui` \
23+
`wx-config-3 --libs` -lm -lfontconfig -ldl -lcurl
24+
1825
CXXFLAGS=-std=c++0x $(CFLAGS)
1926

2027

build_linux/Makefile-libclearsky

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
VPATH=../libclearsky
2+
3+
CXX = g++
4+
CFLAGS = -g -D__64BIT__ -fPIC -Wall -O3
5+
#LDFLAGS = -std=c++11 -lm -lstdc++
6+
CXXFLAGS= -std=c++0x $(CFLAGS)
7+
8+
9+
OBJECTS = \
10+
solpos.o\
11+
clearsky.o
12+
13+
TARGET = libclearsky.a
14+
15+
$(TARGET) : $(OBJECTS)
16+
ar rs $(TARGET) $(OBJECTS)
17+
18+
clean:
19+
rm -rf $(TARGET) $(OBJECTS)
20+

build_linux/Makefile-libsolar

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ CXXFLAGS= -std=c++0x $(CFLAGS)
88

99
OBJECTS = \
1010
solarfield_structures.o\
11+
solarfield_heliostat.o\
12+
solarfield_staff.o\
1113
solarfield_avail.o
1214

1315
TARGET = libsolar.a

libclearsky/clearsky.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#include "clearsky.h"
33
#include <fstream>
44
#include <sstream>
5-
5+
#include <limits>
6+
#include <cmath>
67

78

89
s_location::s_location()

libclearsky/clearsky.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define _CSKYH_
33

44
#include <vector>
5+
#include <string>
56

67
#include "solpos00.h"
78

0 commit comments

Comments
 (0)