Skip to content

Commit

Permalink
Merge pull request #10 from Dergash/gccbuildfix
Browse files Browse the repository at this point in the history
gcc build fixes for include paths and make file
  • Loading branch information
potmdehex committed Feb 9, 2016
2 parents 5158c4c + 2705cf9 commit fa8b4d7
Show file tree
Hide file tree
Showing 19 changed files with 53 additions and 38 deletions.
17 changes: 16 additions & 1 deletion h3m/h3mlib/BUILD/gcc/makefile
Expand Up @@ -47,7 +47,22 @@ obj/%.o: ../../h3m_code/%.c | obj

obj/%.o: ../../h3m_conversion/%.c | obj
$(CC) $< -c $(CFLAGS) -o $@


obj/%.o: ../../h3m_editing/%.c | obj
$(CC) $< -c $(CFLAGS) -o $@

obj/%.o: ../../h3m_modembed/%.c | obj
$(CC) $< -c $(CFLAGS) -o $@

obj/%.o: ../../internal/%.c | obj
$(CC) $< -c $(CFLAGS) -o $@

obj/%.o: ../../io/%.c | obj
$(CC) $< -c $(CFLAGS) -o $@

obj/%.o: ../../utils/%.c | obj
$(CC) $< -c $(CFLAGS) -o $@

obj/%.o: ../../gen/%.c | obj
$(CC) $< -c $(CFLAGS) -o $@

Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/additional_info/h3m_ai.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-11-22
// Created by John Åkerblom 2014-11-22

#ifndef __H3M_AI_H_DEF__
#define __H3M_AI_H_DEF__

// Included by h3m.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"
#include "h3m_ai_custom_hero.h"
#include "h3m_ai_hero_settings.h"
#include "h3m_ai_lose_cond.h"
Expand Down
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-11-22
// Created by John Åkerblom 2014-11-22

#ifndef __H3M_AI_CUSTOM_HERO_H_DEF__
#define __H3M_AI_CUSTOM_HERO_H_DEF__

// Included by h3m_ai.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"

#pragma pack(push, 1)

Expand Down
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-10-12
// Created by John Åkerblom 2014-10-12

#ifndef __H3M_AI_HERO_SETTINGS_H_DEF__
#define __H3M_AI_HERO_SETTINGS_H_DEF__

// Included by h3m_ai.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"
#include "../common/h3m_common.h"

#pragma pack(push, 1)
Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/additional_info/h3m_ai_lose_cond.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-11-22
// Created by John Åkerblom 2014-11-22

#ifndef __H3M_AI_LOSE_COND_H_DEF__
#define __H3M_AI_LOSE_COND_H_DEF__

// Included by h3m_ai.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"

#pragma pack(push, 1)

Expand Down
6 changes: 3 additions & 3 deletions h3m/h3mlib/h3m_structures/additional_info/h3m_ai_rumor.h
@@ -1,12 +1,12 @@
// Created by John Åkerblom 2014-11-22
// Created by John Åkerblom 2014-11-22

#ifndef __H3M_AI_RUMOR_H_DEF__
#define __H3M_AI_RUMOR_H_DEF__

// Included by h3m_ai.h

#include "../utils/msvc_comp_stdint.h"
#include "../h3mlib.h"
#include "../../utils/msvc_comp_stdint.h"
#include "../../h3mlib.h"

#pragma pack(push, 1)

Expand Down
6 changes: 3 additions & 3 deletions h3m/h3mlib/h3m_structures/additional_info/h3m_ai_teams.h
@@ -1,12 +1,12 @@
// Created by John Åkerblom 2014-11-22
// Created by John Åkerblom 2014-11-22

#ifndef __H3M_AI_TEAMS_H_DEF__
#define __H3M_AI_TEAMS_H_DEF__

// Included by h3m_ai.h

#include "../utils/msvc_comp_stdint.h"
#include "../h3mlib.h"
#include "../../utils/msvc_comp_stdint.h"
#include "../../h3mlib.h"

#pragma pack(push, 1)

Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/additional_info/h3m_ai_win_cond.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-11-22
// Created by John Åkerblom 2014-11-22

#ifndef __H3M_AI_WIN_COND_H_DEF__
#define __H3M_AI_WIN_COND_H_DEF__

// Included by h3m_ai.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"

#pragma pack(push, 1)

Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/basic_info/h3m_bi.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-11-22
// Created by John Åkerblom 2014-11-22

#ifndef __H3M_BI_H_DEF__
#define __H3M_BI_H_DEF__

// Included by h3m.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"

#pragma pack(push, 1)

Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/events/h3m_event.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-12-15
// Created by John Åkerblom 2014-12-15

#ifndef __H3M_EVENT_H_DEF__
#define __H3M_EVENT_H_DEF__

// Included by h3m.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"
#include "h3m_event_body.h"

#pragma pack(push, 1)
Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/events/h3m_event_body.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-12-15
// Created by John Åkerblom 2014-12-15

#ifndef __H3M_EVENT_BODY_H_DEF__
#define __H3M_EVENT_BODY_H_DEF__

// Included by h3m.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"

#pragma pack(push, 1)

Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/object_attributes/h3m_oa.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-12-15
// Created by John Åkerblom 2014-12-15

#ifndef __H3M_OA_H_DEF__
#define __H3M_OA_H_DEF__

// Included by h3m.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"
#include "h3m_oa_body.h"

#pragma pack(push, 1)
Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/object_attributes/h3m_oa_body.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-12-15
// Created by John Åkerblom 2014-12-15

#ifndef __H3M_OA_BODY_H_DEF__
#define __H3M_OA_BODY_H_DEF__

// Included by h3m.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"

#pragma pack(push, 1)

Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/object_details/h3m_od.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-12-15
// Created by John Åkerblom 2014-12-15

#ifndef __H3M_OD_H_DEF__
#define __H3M_OD_H_DEF__

// Included by h3m.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"
#include "h3m_od_body_dynamic.h"
#include "h3m_od_body_static.h"

Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/object_details/h3m_od_body_static.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-12-15
// Created by John Åkerblom 2014-12-15

#ifndef __H3M_OD_BODY_STATIC_H_DEF__
#define __H3M_OD_BODY_STATIC_H_DEF__

// Included by h3m_od.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"

#pragma pack(push, 1)

Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/players/h3m_player.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-11-20
// Created by John Åkerblom 2014-11-20

#ifndef __H3M_PLAYER_H_DEF__
#define __H3M_PLAYER_H_DEF__

// Included by h3m.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"
#include "h3m_player_ai.h"

#pragma pack(push, 1)
Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/players/h3m_player_ai.h
@@ -1,11 +1,11 @@
// Created by John Åkerblom 2014-11-20
// Created by John Åkerblom 2014-11-20

#ifndef __H3M_PLAYER_AI_H_DEF__
#define __H3M_PLAYER_AI_H_DEF__

// Included by h3m_player.h

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"

#pragma pack(push, 1)

Expand Down
4 changes: 2 additions & 2 deletions h3m/h3mlib/h3m_structures/tiles/h3m_tile.h
@@ -1,9 +1,9 @@
// Created by John Åkerblom 2014-11-20
// Created by John Åkerblom 2014-11-20

#ifndef __H3M_TILE_H_DEF__
#define __H3M_TILE_H_DEF__

#include "../utils/msvc_comp_stdint.h"
#include "../../utils/msvc_comp_stdint.h"

#define TERRAIN_TYPE_IS_VALID(T) \
((T.terrain_type <= T_ROCK)? 1 : 0)
Expand Down
2 changes: 1 addition & 1 deletion h3m/h3mlib/io/h3mlib_io.c
Expand Up @@ -10,7 +10,7 @@
#ifndef NO_ZLIB
#include <gzip_utils.h>
#else
#include "gzip_empty/gzip_utils.h"
#include "../utils/gzip_empty.h"
#endif

#include <stdio.h>
Expand Down

0 comments on commit fa8b4d7

Please sign in to comment.