summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pcmciautils/pcmciautils-018/Makefile-fix-for-parallel-build.patch
blob: d0bb3d6f1a5f4e6c62e3f90bb60f37c26cecd40b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 1b8ad348f8c712c8e0c16c49cc1c8e577e4d6d3e Mon Sep 17 00:00:00 2001
From: Robert Yang <liezhi.yang@windriver.com>
Date: Thu, 5 Feb 2015 01:16:30 -0800
Subject: [PATCH] Makefile: fix for parallel build

Fixed:
|   src/lex_config.c:34:25: fatal error: yacc_config.h: No such file or directory
|
|    #include "yacc_config.h"
|                            ^
|   compilation terminated.

And:
Compiling lex_config.c.
  src/lex_config.l:34:25: fatal error: yacc_config.h: No such file or directory

Upstream-Status: Pending

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 Makefile |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d45fdc3..963453a 100644
--- a/Makefile
+++ b/Makefile
@@ -246,7 +246,9 @@ $(PCMCIA_SOCKET_STARTUP): $(LIBC) src/startup.o src/yacc_config.o src/lex_config
 	$(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) src/startup.o src/yacc_config.o src/lex_config.o $(LIB_OBJS) $(ARCH_LIB_OBJS)
 	$(QUIET) $(STRIPCMD) $@
 
-yacc_config.o lex_config.o: %.o: %.c
+lex_config.o: lex_config.c yacc_config.h
+	$(CC) -c -MD -O -pipe $(CPPFLAGS) $<
+yacc_config.o: yacc_config.c
 	$(CC) -c -MD -O -pipe $(CPPFLAGS) $<
 
 debugtools: ccdv $(CBDUMP) $(CISDUMP)
-- 
1.7.9.5