blob: defff627faafe3bcf9ac06e80cac1c66cd5c6fcd (
plain) (
blame)
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
|
--- Makefile.orig Mon May 1 07:29:07 2006
+++ Makefile Sun Nov 12 14:57:38 2006
@@ -6,7 +6,7 @@
#
CC = cc
-FLAGS = -ansi -pedantic -Wall -O2 -fno-strict-aliasing
+FLAGS = -ansi -Wall -O2 -fno-strict-aliasing # -pedantic
BIN_PROGRAM = opendd
@@ -49,15 +49,13 @@
fi
@echo ""
.c.o:
- @echo "===> Compiling `basename $*.o` ..."
- @if [ "$*" = "./include/socket" ]\
- || [ "$*" = "./main" ]\
- && [ "${USE_SOCKET_SSL}" ]; then\
- echo '${CC} ${FLAGS} ${MACROS} -c -o $*.o $*.c';\
- ${CC} ${FLAGS} ${MACROS} -c -o $*.o $*.c;\
+ @echo "===> Compiling `basename $@` ..."
+ @if [ "${USE_SOCKET_SSL}" ]; then\
+ echo '${CC} ${FLAGS} ${MACROS} -c -o $@ $<';\
+ ${CC} ${FLAGS} ${MACROS} -c -o $@ $<;\
else\
- echo '${CC} ${FLAGS} -c -o $*.o $*.c';\
- ${CC} ${FLAGS} -c -o $*.o $*.c;\
+ echo '${CC} ${FLAGS} -c -o $@ $<';\
+ ${CC} ${FLAGS} -c -o $@ $<;\
fi
clean:
if [ -f opendd ];then rm -f opendd; fi
|