Changeset 73


Ignore:
Timestamp:
07/30/06 21:15:56 (18 years ago)
Author:
tim
Message:

fixes for Makefiles to support FreeBSD's iconv

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r67 r73  
    1212CC=gcc
    1313OPTS=-std=gnu89 -pedantic -Wall
     14INC=-I/usr/local/include
     15LIB=-L/usr/local/lib
     16
     17UNAME := $(shell uname)
     18ifeq ($(UNAME),FreeBSD)         
     19  LIB=$(LIB) -liconv
     20endif
    1421
    1522BUILD=$(CURDIR)/build
  • trunk/lib/Makefile

    r36 r73  
    88
    99regfio.o: regfio.c
    10         $(CC) $(CFLAGS) $(OPTS) -c -o $@ regfio.c
     10        $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ regfio.c
    1111
    1212smb_deps.o: smb_deps.c
    13         $(CC) $(CFLAGS) $(OPTS) -c -o $@ smb_deps.c
     13        $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ smb_deps.c
    1414
    1515void_stack.o: void_stack.c
    16         $(CC) $(CFLAGS) $(OPTS) -c -o $@ void_stack.c
     16        $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ void_stack.c
    1717
    1818clean:
  • trunk/src/Makefile

    r65 r73  
    44
    55REGLOOKUP=$(BUILD_BIN)/reglookup
    6 LIBS=$(wildcard ../lib/*.o)
     6OBJ=$(wildcard ../lib/*.o)
    77FILES=$(REGLOOKUP)
    88
    99all: $(FILES)
    1010
    11 $(REGLOOKUP): reglookup.o $(LIBS)
    12         $(CC) $(CFLAGS) $(OPTS) -o $@ reglookup.o $(LIBS)
     11$(REGLOOKUP): reglookup.o $(OBJ)
     12        $(CC) $(CFLAGS) $(OPTS) $(LIB) -o $@ reglookup.o $(OBJ)
    1313
    1414reglookup.o: reglookup.c
    15         $(CC) $(CFLAGS) $(OPTS) -c -o $@ reglookup.c
     15        $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ reglookup.c
    1616
    1717install:
Note: See TracChangeset for help on using the changeset viewer.